プロジェクト

全般

プロフィール

Vote #76047

完了

PDF is broken on iOS

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
PDF export_39
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
39
version_id:
98
issue_org_id:
19095
author_id:
117439
assigned_to_id:
0
comments:
12
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
88
ステータス-->[Closed]

説明

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:
!pdfOnWindows.png!

iOS:
!pdfOnIos.png!

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


journals

I have created issue.
https://github.com/naitoh/rbpdf/issues/10
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.
--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
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!
--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------
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.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
This problem fixed by rbpdf 1.18.6.
please bundle update.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,20142,Update Gemfile to require rbpdf ~>1.18.6

Admin Redmine さんが約4年前に更新

  • カテゴリPDF export_39 にセット
  • 対象バージョン2.6.6_98 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0