Defect #19095

PDF is broken on iOS

Added by Marcel Müller almost 3 years ago. Updated over 2 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:2.6.6
Resolution:Fixed Affected version:2.6.1

Description

When viewing a pdf which was exported in redmine on an iOS device (iPhone / iPad) it's dimensions are messed up and scrolling (in safari) is not possible.

Windows:
PDF File in Safari on iOS 8.1.3

iOS:
PDF File in Acrobat Reader on Windows 7

Can't upload the pdf (as it's too large), but here's a link: https://dl.dropboxusercontent.com/u/46574377/Test.pdf

pdfOnIos.png - PDF File in Acrobat Reader on Windows 7 (5.6 KB) Marcel Müller, 2015-02-12 17:45

pdfOnWindows.png - PDF File in Safari on iOS 8.1.3 (8.24 KB) Marcel Müller, 2015-02-12 17:45


Related issues

Related to Redmine - Feature #20142: Update Gemfile to require rbpdf ~>1.18.6 Closed

History

#2 Updated by Marcel Müller almost 3 years ago

Replaced the installed rbpdf.rb with the new one and layout looks good on iOS now - although zooming in (with pinch-to-zoom) is still not possible when viewing the pdf in safari.

#3 Updated by Jun NAITOH almost 3 years ago

Marcel Müller wrote:

although zooming in (with pinch-to-zoom) is still not possible when viewing the pdf in safari.

What does 'with pinch-to-zoom' mean?
I think looks good pdf in safari on iOS 8.1.3 by replaced rbpdf.rb.

#4 Updated by Toshi MARUYAMA almost 3 years ago

Marcel Müller wrote:

Can't upload the pdf (as it's too large), but here's a link: https://dl.dropboxusercontent.com/u/46574377/Test.pdf

I don't know it is related or not, it seems this pdf is made by #19017 modification.

#5 Updated by Marcel Müller over 2 years ago

Sorry, missed your replies!
I reverted the modification made in #19017 and rechecked the issue, it's still there. After further investigation I noticed that this is related to a theme I'm using which doesn't allow zooming the viewport (something like user-scalable=no in a viewport-meta) and safari on iOS preserves this configuration for displaying the pdf after clicking the "PDF-Link". If I open the URL directly, everything is working fine (as well as when using the standard theme). Sorry for the confusion here.

What I'm still wondering: Is it correct, that a wiki page with such few information (see first post) generates a PDF file with > 800KB?

Thanks for your help!

#6 Updated by Toshi MARUYAMA over 2 years ago

  • Status changed from New to Needs feedback

Can we close this issue?

Marcel Müller wrote:

What I'm still wondering: Is it correct, that a wiki page with such few information (see first post) generates a PDF file with > 800KB?

Because of embedded fonts.

#7 Updated by Marcel Müller over 2 years ago

The issue itself is fixed with the rbpdf 1.18.6, but this version wasn't released yet. Therefore I'm not sure if this issue should be open until 1.18.6 is released or can be closed.

#8 Updated by Toshi MARUYAMA over 2 years ago

  • Status changed from Needs feedback to New

#9 Updated by Jun NAITOH over 2 years ago

This problem fixed by rbpdf 1.18.6.
please bundle update.

#10 Updated by Toshi MARUYAMA over 2 years ago

  • Target version set to 2.6.6

#11 Updated by Go MAEDA over 2 years ago

  • Related to Feature #20142: Update Gemfile to require rbpdf ~>1.18.6 added

#12 Updated by Jean-Philippe Lang over 2 years ago

  • Status changed from New to Closed
  • Resolution set to Fixed

Also available in: Atom PDF