Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

FREE3OF9 barcode font not displaying in Firefox's new built-in PDF viewer

  • 5 件の返信
  • 11 人がこの問題に困っています
  • 3 回表示
  • 最後の返信者: arronlee

more options

I have a PHP web app that uses FPDF (v1.53) and the FREE3OF9 barcode font to dynamically generate a PDF which includes a barcode in it. The font is imported into the document using the FPDF AddFont method (http://fpdf.org/en/doc/addfont.htm). In versions of Firefox prior to 19, the PDF opened in a new tab, was displayed by the Adobe Acrobat plugin, and the barcode showed up perfectly fine.

Now that Firefox 19.0 is using its own built-in PDF viewer, the barcode no longer displays at all -- there's just a blank spot where it should be. It continues to display fine in IE and Chrome. How I can get the font to display correctly in the newest version of Firefox?

I understand that I can change the Action for the PDF content type to 'Use Adobe Reader' in the options, but I'd prefer to fix this so that my users don't have to change their browser settings. Or at the very least, it would be nice if they could only change the Action for PDFs originating from my site and not globally.

Thanks.

I have a PHP web app that uses FPDF (v1.53) and the FREE3OF9 barcode font to dynamically generate a PDF which includes a barcode in it. The font is imported into the document using the FPDF AddFont method (http://fpdf.org/en/doc/addfont.htm). In versions of Firefox prior to 19, the PDF opened in a new tab, was displayed by the Adobe Acrobat plugin, and the barcode showed up perfectly fine. Now that Firefox 19.0 is using its own built-in PDF viewer, the barcode no longer displays at all -- there's just a blank spot where it should be. It continues to display fine in IE and Chrome. How I can get the font to display correctly in the newest version of Firefox? I understand that I can change the Action for the PDF content type to 'Use Adobe Reader' in the options, but I'd prefer to fix this so that my users don't have to change their browser settings. Or at the very least, it would be nice if they could only change the Action for PDFs originating from my site and not globally. Thanks.

すべての返信 (5)

more options

You can set the pdfjs.disabled pref to true on the about:config page to disable the build-in PDF viewer and use the Adobe Reader instead.

See also:

more options

I've only used the PDF viewer a couple times so far, so I can't answer your question about whether it can be enabled/disabled on a site-specific basis.

On one PDF I opened, I saw had an infobar saying it might not display correctly and offering the option to open in another viewer. I'm assuming Firefox doesn't detect that it has a problem with your PDF.

As a short-run workaround, what do you think about changing the file disposition from inline to attachment? I think this might bypass the viewer by forcing a download.

header("Content-Disposition: attachment; filename=".$fname);
more options

Thanks for the suggestion. However, I think the users would prefer to change the Content Type Action rather than downloading the file. They're a fickle bunch.

more options

If there isn't a MIME (content) type send yb the server or specified then Firefox may use the Adobe Reader plugin instead.

more options

I'm studying about SDKs dealing with ***** generating Barcodes recently. I do hope there are more plugins for us to choose from.

moderator removed spam link
Forum rules and guidelines

この投稿は the-edmeister により に変更されました