Ce site disposera de fonctionnalités limitées pendant que nous effectuons des opérations de maintenance en vue de vous proposer un meilleur service. Si un article ne règle pas votre problème et que vous souhaitez poser une question, notre communauté d’assistance est prête à vous répondre via @FirefoxSupport sur Twitter, et /r/firefox sur Reddit.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Print to PDF for Arabic text doesn't work properly.

  • 6 réponses
  • 1 a ce problème
  • 2 vues
  • Dernière réponse par joelthe1

more options

I'm trying to print to PDF an HTML file containing Arabic text which is formatted via CSS. It appears correctly in the browser. However, when I attempt to Print to PDF it loses formatting and shows the output incorrectly.

The Print to PDF, however, works correctly in other browsers-Chrome and Safari.

Could you give me some guidance if there is something specific for Firefox that I need to be doing in the HTML for it print to PDF correctly?

I couldn't find a way to attach the HTML file, so I created a GitHub gist for it: https://gist.github.com/joelthe1/8f6d2a8c8bc14458ec2a7ac32f52470e

I'm trying to print to PDF an HTML file containing Arabic text which is formatted via CSS. It appears correctly in the browser. However, when I attempt to Print to PDF it loses formatting and shows the output incorrectly. The Print to PDF, however, works correctly in other browsers-Chrome and Safari. Could you give me some guidance if there is something specific for Firefox that I need to be doing in the HTML for it print to PDF correctly? I couldn't find a way to attach the HTML file, so I created a GitHub gist for it: https://gist.github.com/joelthe1/8f6d2a8c8bc14458ec2a7ac32f52470e

Toutes les réponses (6)

more options

Hi, You may need this : https://addons.mozilla.org/en-US/firefox/addon/print-to-pdf-document/ There are others of copy/paste print into the search bar. I do mean copy/paste to save hassle.

Please let us know if this solved your issue or if need further assistance.

more options

Hi @Pkshadow, Thank you for the prompt reply. I installed the addon you suggested and it doesn't seem to do work at all in my browser. I tried restarting my browser after install, but it doesn't respond on clicking the button.

I tried a few other print-to-pdf plugins but they don't support printing a local HTML file from the computer.

I personally think Firefox should be able to handle the print output itself since other browsers are able to do it correctly.

more options

How about the link of the site your trying to print if it isn't private information so others can test to see what results they get?

more options

@WestEnd, The HTML file I'm trying to print to PDF is generated from a Desktop App which I'm trying to view and print (to PDF) from Firefox.

For testing, I've attached the file as a gist. The link is: https://gist.github.com/joelthe1/8f6d2a8c8bc14458ec2a7ac32f52470e

You could download the HTML from the link and open it up in Firefox to test it yourself. Please note that the generated PDF looks okay for the first couple of pages, then it starts showing missing data and misalignment.

more options

Hi, try these please :

Please let us know if this solved your issue or if need further assistance.

more options

Hi, I tried going through those links and tried resetting printer settings and reset all printer settings. Those don't seem to help. The other options don't seem pertinent.

I asked my friend to try it on his computer and the issue persists for him too when he tried to print to PDF from Firefox 58.0.