Closed Bug 843558 Opened 12 years ago Closed 11 years ago

Firefox built-in PDF viewer doesn't support TCPDF

Categories

(Firefox :: PDF Viewer, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 25

People

(Reporter: elnino, Unassigned)

References

()

Details

(Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-d-hwa-on][pdfjs-f-fixed-upstream] https://github.com/mozilla/pdf.js/pull/2956)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:22.0) Gecko/20130220 Firefox/22.0 Build ID: 20130220031126 Steps to reproduce: I tried to open some example files of TCPDF which is PHP class for generating PDF documents using built-in PDF reader but it doesn't work as expected. Actual results: The PDF is not displayed correctly. Expected results: The PDF should have displayed correctly.
Im providing you the links to examples: http://www.tcpdf.org/examples.php
Component: Untriaged → PDF Viewer
Web console says the font has been rejected by the platform.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Example No. 15 with bookmarks doesn't work with the viewer, also not with google chrome. Normally you can set PDF bookmarks using the Bookmark() method and set PDF named destinations using the setDestination() method. Before Firefox 19 the document was automatically opened with the Foxit-reader. On the left site of the pdf were bookmarks. In the new Firefox built-in PDF viewer they are not shown.
This issue is also being tracked in the pdf.js issue tracker: https://github.com/mozilla/pdf.js/issues/2754 It seems to be related to HWA.
The problem goes away if you disable font subsetting in TCPDF.
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-d-hwa-on]
Version: 19 Branch → Trunk
I disabled font subsetting ($pdf->setFontSubsetting(false);) but this did not fix the bookmark-problem. @Christian Schmidt: Was ($pdf->setFontSubsetting(false);) enough for you to fix the bookmark-problem or did you something else?
My comment about font subsetting only related to the rendering problems as reported by Nino Vranešič. The bookmark problem sounds like a separate issue, so I recommend that you create a separate bug report for that.
Whiteboard: [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-d-hwa-on] → [pdfjs-c-rendering][pdfjs-d-font-conversion][pdfjs-d-hwa-on][pdfjs-f-fixed-upstream] https://github.com/mozilla/pdf.js/pull/2956
Status: NEW → RESOLVED
Closed: 11 years ago
Depends on: 888635
Resolution: --- → FIXED
Target Milestone: --- → Firefox 25
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: