pdfmake icon indicating copy to clipboard operation
pdfmake copied to clipboard

Images do not show up in Firefox

Open EpicWolverine opened this issue 10 years ago • 4 comments

I have an application that exports PDFs with images stored in Base64 that it gets from AngularJS $scope variables (but a hard-coded test image doesn't work either so it's not just Angular weirdness). These images do not show up in the PDF when exported in Firefox. Saving the exported PDFs, opening them with SumatraPDF, and trying to select the images (double clicking where they should be) will yield a correctly sized selection box, so it's drawing something there. However, the PDFs are generated just fine in both Chrome and IE 11.

I'm not sure how to go about tackling this issue or what other details you may need to help me with this. Let me know if you need to know more. I do have another (possibly related) issue (#666) in the same application so that may be worth looking at.

EpicWolverine avatar Aug 09 '16 21:08 EpicWolverine

Are you getting array errors in console? Try the workaround described in (#577), I bet this is the same issue.

siwei-luo avatar Aug 10 '16 10:08 siwei-luo

I'm not getting any errors in the console. Applying the workaround anyway does not help.

However, prompted by an observation in #660, I tested it with Firefox 47 (I used the portable version here) and the problem did not occur (nor did #666 by the way). It looks like some change in Firefox 48 broke it, but nothing in the release notes or developer release notes seems to be big enough to cause this.

EpicWolverine avatar Aug 10 '16 15:08 EpicWolverine

see https://github.com/bpampuch/pdfmake/issues/577#issuecomment-241249420 for a fix

FastestRobot avatar Aug 22 '16 16:08 FastestRobot

Fixed by https://github.com/bpampuch/pdfmake/pull/759

liborm85 avatar Dec 17 '16 15:12 liborm85