Why do PDF-linked files on my website appear off center when opened?
I have created a website (not yet published) in which I have linked some PDF files. When I view these files in preview mode, the file pages all appear off center, i.e. they are positioned to the right on the page with a wide, blank margin on the left. This only occurs when I view them in Mozilla Firefox, not in other browsers such as Internet Explorer and Google Chrome. What might be causing this and how can I rectify it?
Ausgewählte Lösung
I personally hate how browsers are defaulted to open .pdf documents in the browser. You can set it to download the document in Firefox then automatically open it in Adobe Reader solving your viewing issue.
To do this click on the Orange FireFox icon on the top left. (If you have the menu bar set up click the tools button.)
Now click Options. Choose the Applications tab. Scroll down to Portable Document Format. To the right click the dropdow list. Choose other. Then choose Adobe Reader from the list. Obviously this means you have Adobe Reader installed. Do not choose Adobe Reader in browser as that just means it will open with Adobe in the Browser. Which can sometimes cause Firefox to crash or stall out if the PDF is to big. I hope this helps.
Diese Antwort im Kontext lesen 👍 3Alle Antworten (7)
hmm are you using the builtin PDF viewer (PDF.js), refer to here to go back to the regular Adobe Acrobat PDF viewer.
As far as I can tell, I am using Adobe Acrobat Reader XI (11.0.03). I don't know if this Is the Plug-In (PDF.js) or regular PDF viewer. Please advise.
However, when I tried viewing my website using Mozilla Firefox but on another computer, the problem never came up. The text on the page was perfectly centered. That computer was also using the same Acrobat Reader XI version as above. What does this suggest?
You can set the pdfjs.disabled pref to true on the about:config page to disable the build-in PDF viewer.
Check the value of the plugin.disable_full_page_plugin_for_types pref on the about:config page and remove the application/pdf part if present or reset the pref to the default via the right-click context menu.
Ausgewählte Lösung
I personally hate how browsers are defaulted to open .pdf documents in the browser. You can set it to download the document in Firefox then automatically open it in Adobe Reader solving your viewing issue.
To do this click on the Orange FireFox icon on the top left. (If you have the menu bar set up click the tools button.)
Now click Options. Choose the Applications tab. Scroll down to Portable Document Format. To the right click the dropdow list. Choose other. Then choose Adobe Reader from the list. Obviously this means you have Adobe Reader installed. Do not choose Adobe Reader in browser as that just means it will open with Adobe in the Browser. Which can sometimes cause Firefox to crash or stall out if the PDF is to big. I hope this helps.
Thanks a lot. Your recommended solution did the trick. I appreciated the clarity of your instructions.
Interestingly, though, before I tried your solution, I opened my website using Mozilla Firefox on another computer and the problem didn't exist, even though I was still opening the PDF in the browser.
Thank you for your suggestions. I have used them, along with the other recommendations. They problem appears to be solved.
Hi there.
I have the same problem ! On 25 SAME iMac with the same version of Firefox, and the same pluggins, I have 1 computer which display SOME pdf not properly : as explained, the PDF is cropped on the left, with a blank margin (shifted, not centered).
NB : - if I save the PDF, its OK, the file is good. - On the others 24 computers, the pdf looks nice. - If I user Adobe Reader (or similar software), the pdf looks nice too.
I'm a web developper, and I really want to know, to understand the problem, not avoid it by changing the default PDF viewer.
Does anyone have more information about this issue ?
Thanks a lot ! Ash_