Porovnanie revízií

View PDF files using Firefox’s built-in viewer

Revízia 277942:

Revízia 277942 od používateľa lsiebert zo dňa

Revízia 284504:

Revízia 284504 od používateľa Mozinet zo dňa

Kľúčové slová:

Výsledky vyhľadávania:

You can view PDF files in Firefox with the built-in viewer. You can also choose a different viewer or set Firefox to always ask. Learn more.
You can view PDF files in Firefox with the built-in viewer. You can also choose a different viewer or set Firefox to always ask. Learn more.

Obsah:

Firefox includes a built-in PDF viewer to display PDF files inside the browser window. This article explains how to use the built-in PDF viewer, how to fix the common issues you might encounter, and how to use another PDF viewer. __TOC__ =Use Firefox’s built-in PDF Viewer= Firefox's built-in PDF viewer allows you to view almost all PDF files found on the web without an external application (exceptions to this are PDF files with a [https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types MIME type] incorrectly set). The built-in viewer is used when Portable Document Format (PDF) files are set to {menu Open in Firefox} in your [[Manage file types and download actions in Firefox|Firefox settings for different types of files]]. This is the default setting. When you click a link to a PDF file or open it from the Firefox [[Where to find and manage downloaded files in Firefox|Downloads panel]], it will be rendered with the built-in PDF viewer. (To learn more about the built-in viewer, see below.) {for not fx106}[[Image:Fx91PDFviewer]]{/for}{for fx106}[[Image:Firefox PDF viewer - updated V122]]{/for} The built-in PDF viewer will open the PDF file in Firefox without saving it. When you're viewing a PDF file in Firefox, you can use the download {for not fx106}[[Image:Fx98PDFviewer-DownloadButton]]{/for}{for fx106}[[Image:Fx106 PDF dl button]]{/for} button in the PDF viewer's toolbar to download and save the PDF file to your computer. ==Fill out forms in PDF Viewer== Some PDF files have interactive fields to fill in data (such as on forms). Using Firefox's built-in PDF viewer, you can fill out fields such as text, check boxes and radio buttons. After entering data into these fields, you can download the file to have the filled-out version saved to your computer. {for not fx106}[[Image:Fx105 PDF Forms]]{/for}{for fx106}[[Image:Firefox PDF fill out forms - updated v122]]{/for} ==PDF Viewer toolbar functions== *'''View document thumbnails or outline:''' The slider button on the far left will open a sidebar with thumbnails of the document's pages. Some documents will also have an outline view available. These make it easy to navigate through a long document. *;{for not fx106}[[Image:Fx105 PDF Sidebar]]{/for}{for fx106}[[Image:Fx106 PDF Sidebar]]{/for} *'''Page up and down or skip directly to a page:''' You can use the up and down arrows to page through a document or enter the number of the page you want to go to. *;{for not fx106}[[Image:Fx105 PDF Pager]]{/for}{for fx106}[[Image:Fx106 PDF Pager]]{/for} *'''Change the size of the document:''' Use the {button &#43;} and {button &#8722;} buttons to zoom in and out or choose a zoom setting from the dropdown menu. *;{for not fx106}[[Image:Fx105 PDF Zoom]]{/for}{for fx106}[[Image:Fx106 PDF Zoom]]{/for} {for not fx106} *'''Fullscreen or Presentation mode:''' Click the Presentation Mode button to allow the PDF file to take over your entire screen. Press {key Esc} to exit fullscreen mode. *;[[Image:Fx105 PDF Presentation]] *'''Print:''' Click the Printer button to open the print setup dialog. *;[[Image:Fx105 PDF Print]] *'''Download:''' Click the Download button to save the PDF file to your computer. *;[[Image:Fx105 PDF Download]] *'''Copy current view:''' [[T:contextmenu]] the current view button to open the current view in another tab or window. *;[[Image:Fx105 PDF Current view]] {/for} {for fx106} *'''Print:''' Click the Printer button to open the print setup dialog. *;[[Image:Fx106 PDF Print]] *'''Download:''' Click the Download button to save the PDF file to your computer. *;[[Image:Fx106 PDF Download]] ==Annotate PDF files== Annotating a PDF allows you to add notes, highlights, and other markings directly on the document. This is especially useful for making corrections, highlighting important information, or adding personal notes for future reference. *Click [[Image:Annotate PDF 1]] to choose a color and text size before selecting where on the document you wish to add text. *Click [[Image:Annotate PDF 2]] to choose a color, thickness and opacity before then being able to draw on the document. Downloading the file saves a copy of the document with your annotations. {/for} {for fx125} ==Highlight in PDF files== ===Add a highlight=== #To highlight text or an area in a PDF document, first select the desired text or area. Then, click on [[Image:Firefox PDF highlighting option|width=30]]. #;[[Image:Firefox PDF select text to highlight]] #Choose your preferred highlight color and adjust the thickness of the highlight. #;[[Image:Firefox PDF highlighting settings]] ===Show/hide all highlights=== #To manage the visibility of all highlights in a PDF file,first click [[Image:Firefox PDF highlighting option|width=30]] at the top right of your screen. #Then, use the toggle located under the ''Show all'' option to either display or hide all the highlights in the PDF file. #;[[Image:Show/hide all PDF highlights]] ===Edit or delete a highlight=== #Click on the area you previously highlighted. #;[[Image:Edit or delete Firefox PDF highlight]] #To change the color of your highlight, click on [[Image:Color selection dropdown for PDF highlight|width=30]] and select a new color. #To remove the highlight, click [[Image:Trash can icon]]. {/for} {for fx119} ==Add an image to PDF files== {note}Starting in [[Find what version of Firefox you are using|Firefox version]] 119, you will be able to add an image to a PDF file. This feature is being rolled out gradually, so it may not be available to you at this time.{/note} In many PDF-related tasks, incorporating images can provide supplementary information to your content. '''Inserting an image:''' #On the top right of the screen, click [[Image:Add image to PDF 2]]. #Click {menu + Add image}. This will prompt the file selection window. #Browse and select the desired image file to add it to the PDF. '''Repositioning and resizing the image:''' #Drag and drop the image to your preferred location within the PDF. #To adjust the image size, click and drag its borders until it fits your desired dimensions. '''Adding Alt Text for accessibility:''' #After adding the image, click {button + Alt text}. #In the provided space, either: #*Write a [https://accessibility.huit.harvard.edu/describe-content-images concise description] of the image for screen readers, or #*Mark the image as ''decorative'' if it's for aesthetic purposes only. #Click {button Save} to insert the alt text. #;[[Image:Add image to PDF]] {/for} ==PDF Viewer keyboard shortcuts== {| !Command !Shortcut |- |Next page |{key N} or {key J} or {key &#8594;} |- |Previous page |{key P} or {key K} or {key &#8592;} |- |Zoom in |{for win,linux}{key Ctrl+&#43;}{/for}{for mac}{key Command+&#43;}{/for} |- |Zoom out |{for win,linux}{key Ctrl+&#8722;}{/for}{for mac}{key Command+&#8722;}{/for} |- |Automatic Zoom |{for win,linux}{key Ctrl+0}{/for}{for mac}{key Command+0}{/for} |- |Rotate the document clockwise |{key R} |- |Rotate counterclockwise |{key Shift+R} |- |Switch to Presentation Mode |{for win,linux}{key Ctrl+Alt+P}{/for}{for mac}{key Command+Alt+P}{/for} |- |Choose Text Selection Tool |{key S} |- |Choose Hand Tool |{key H} |- |Focus the Page Number input box |{for win,linux}{key Ctrl+Alt+G}{/for}{for mac}{key Command+Alt+G}{/for} |} =Use a different PDF viewer for downloaded PDF files= When Firefox is set as the default PDF viewer, and you download a PDF file in Firefox and save it to your computer, you can use a different application to view those PDF files by following these steps: #Open the [[Where to find and manage downloaded files in Firefox|Downloads panel]] by clicking the [[Image:Fx91DownloadsButton]] download icon next to the address bar. (Alternatively, [[Where to find and manage downloaded files in Firefox#w_see-downloads-history|open the Downloads Library window]].) #[[Template:contextmenu]] the download entry for the PDF file you want to open. #;{for win,linux}[[Image:Fx99DownloadsPanel-PDFcontextmenu-Win]]{/for}{for mac}[[Image:Edit PDF 2]]{/for} #Click the context menu item for the system default PDF viewer{for win} (for example, click {menu Open in Adobe Acrobat Reader DC}){/for}{for mac} (for example, click {menu Open in Preview}){/for} to open the PDF file in that application. {note}'''Note:''' If you want to view a downloaded PDF file in another application, open the Downloads panel or Library window as explained above, but {for win,linux}click the file folder icon [[Image:Fx91DownloadsPanel-OpenFolderIcon]] for the PDF file entry. This will open the folder containing the downloaded file.{/for}{for mac}click the magnifying glass icon [[Image:MagnifyingGlass]] for the PDF file entry. This will open the folder containing the downloaded file in Finder.{/for} You can then {for win,linux}right-click{/for}{for mac}control-click{/for} the file, select {menu Open with} and choose the PDF viewer application you wish to use.{/note} =Choose another PDF viewer to use by default or set Firefox to always ask= {note}'''Note:''' When you choose another PDF viewer to use by default in Firefox, or, if you set Firefox to always ask you what to do with PDF files, any PDF files you open will also be saved to your Downloads folder (see [[Where to find and manage downloaded files in Firefox]]).{/note} ==Disable the built-in PDF viewer and use another viewer== {note} '''Note:''' If Firefox is not your current default PDF viewer, you will be prompted to set it as the default when opening a PDF file in Firefox. ;[[Image:Set FF as default PDF viewer prompt]] {/note} You can also set a different third-party PDF viewer to handle PDF files, instead of Firefox’s built-in PDF viewer. To switch from using the built-in PDF viewer to another viewer: #[[T:optionspreferences]] #In the {menu General} panel, go down to the '''Applications''' section. #Find '''Portable Document Format (PDF)''' in the list and click the entry to select it. #Click the arrow under the ''Action'' column for the above entry and select the PDF viewer you wish to use from the drop-down menu. #;{for mac}[[Image:Edit PDF 3]]{/for}{for linux}[[Image:Fx78Applications-PDF]]{/for}<!-- need linux image for fx77 showing drop-down options -->{for win}[[Image:Fx78Applications-PDF-Win]]{/for} {note}'''Note''': When {menu Open in Firefox} is the selected action, the built-in PDF viewer is used.{/note} ==Set Firefox to ask you what to do with PDF files== If you want Firefox to always ask you what to do with PDF files, follow the above steps to change the action for the '''Portable Document Format (PDF)''' entry, except select {menu Always ask} from the drop-down menu. The next time you click a link to download a PDF file, Firefox will show you a prompt asking what to do with the file. You can then choose to open it with Firefox's built-in PDF viewer, open it with a different PDF application, or you can choose to save the file. ;[[Image:Fx78openingPDF-AlwaysAsk]] For more information, see [[Manage file types and download actions in Firefox]]. =Troubleshoot problems with the PDF viewer= *With certain types of PDF files, the PDF Viewer may have problems displaying fonts, colors, or the whole document. If some PDF files don't render well or are blank, click the download button on the right side of the document header to open it with the default PDF viewer application on your computer. *If you can't open any PDF files with the built-in PDF viewer, a Firefox extension could be the cause. You can disable all of your extensions, to see if one of them was the problem.<!-- Maybe the user is using NoScript and doesn't want to disable it completely. Note that https://bugzilla.mozilla.org/show_bug.cgi?id=739058 is now resolved WORKSFORME as of 2013-02-06. --> For details, see [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems#w_disable-all-extensions]].
Firefox includes a built-in PDF viewer to display PDF files inside the browser window. This article explains how to use the built-in PDF viewer, how to fix the common issues you might encounter, and how to use another PDF viewer. __TOC__ =Use Firefox’s built-in PDF Viewer= Firefox's built-in PDF viewer allows you to view almost all PDF files found on the web without an external application (exceptions to this are PDF files with a [https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types MIME type] incorrectly set). The built-in viewer is used when Portable Document Format (PDF) files are set to {menu Open in Firefox} in your [[Manage file types and download actions in Firefox|Firefox settings for different types of files]]. This is the default setting. When you click a link to a PDF file or open it from the Firefox [[Where to find and manage downloaded files in Firefox|Downloads panel]], it will be rendered with the built-in PDF viewer. (To learn more about the built-in viewer, see below.) [[Image:Firefox PDF viewer - updated V122]] The built-in PDF viewer will open the PDF file in Firefox without saving it. When you're viewing a PDF file in Firefox, you can use the download [[Image:Fx106 PDF dl button]] button in the PDF viewer's toolbar to download and save the PDF file to your computer. ==Fill out forms in PDF Viewer== Some PDF files have interactive fields to fill in data (such as on forms). Using Firefox's built-in PDF viewer, you can fill out fields such as text, check boxes and radio buttons. After entering data into these fields, you can download the file to have the filled-out version saved to your computer. [[Image:Firefox PDF fill out forms - updated v122]] ==PDF Viewer toolbar functions== *'''View document thumbnails or outline:''' The slider button on the far left will open a sidebar with thumbnails of the document's pages. Some documents will also have an outline view available. These make it easy to navigate through a long document. *;[[Image:Fx106 PDF Sidebar]] *'''Page up and down or skip directly to a page:''' You can use the up and down arrows to page through a document or enter the number of the page you want to go to. *;[[Image:Fx106 PDF Pager]] *'''Change the size of the document:''' Use the {button &#43;} and {button &#8722;} buttons to zoom in and out or choose a zoom setting from the dropdown menu. *;[[Image:Fx106 PDF Zoom]] *'''Print:''' Click the Printer button to open the print setup dialog. *;[[Image:Fx106 PDF Print]] *'''Download:''' Click the Download button to save the PDF file to your computer. *;[[Image:Fx106 PDF Download]] ==Annotate PDF files== Annotating a PDF allows you to add notes, highlights, and other markings directly on the document. This is especially useful for making corrections, highlighting important information, or adding personal notes for future reference. *Click [[Image:Annotate PDF 1]] to choose a color and text size before selecting where on the document you wish to add text. *Click [[Image:Annotate PDF 2]] to choose a color, thickness and opacity before then being able to draw on the document. Downloading the file saves a copy of the document with your annotations. {for fx125} ==Highlight in PDF files== ===Add a highlight=== #To highlight text or an area in a PDF document, first select the desired text or area. Then, click on [[Image:Firefox PDF highlighting option|width=30]]. #;[[Image:Firefox PDF select text to highlight]] #Choose your preferred highlight color and adjust the thickness of the highlight. #;[[Image:Firefox PDF highlighting settings]] ===Show/hide all highlights=== #To manage the visibility of all highlights in a PDF file, first click [[Image:Firefox PDF highlighting option|width=30]] at the top right of your screen. #Then, use the toggle located under the ''Show all'' option to either display or hide all the highlights in the PDF file. #;[[Image:Show/hide all PDF highlights]] ===Edit or delete a highlight=== #Click on the area you previously highlighted. #;[[Image:Edit or delete Firefox PDF highlight]] #To change the color of your highlight, click on [[Image:Color selection dropdown for PDF highlight|width=30]] and select a new color. #To remove the highlight, click [[Image:Trash can icon]]. {/for} {for fx119} ==Add an image to PDF files== {note}Starting in [[Find what version of Firefox you are using|Firefox version]] 119, you will be able to add an image to a PDF file. This feature is being rolled out gradually, so it may not be available to you at this time.{/note} In many PDF-related tasks, incorporating images can provide supplementary information to your content. '''Inserting an image:''' #On the top right of the screen, click [[Image:Add image to PDF 2]]. #Click {menu + Add image}. This will prompt the file selection window. #Browse and select the desired image file to add it to the PDF. '''Repositioning and resizing the image:''' #Drag and drop the image to your preferred location within the PDF. #To adjust the image size, click and drag its borders until it fits your desired dimensions. '''Adding Alt Text for accessibility:''' #After adding the image, click {button + Alt text}. #In the provided space, either: #*Write a [https://accessibility.huit.harvard.edu/describe-content-images concise description] of the image for screen readers, or #*Mark the image as ''decorative'' if it's for aesthetic purposes only. #Click {button Save} to insert the alt text. #;[[Image:Add image to PDF]] {/for} ==PDF Viewer keyboard shortcuts== {| !Command !Shortcut |- |Next page |{key N} or {key J} or {key &#8594;} |- |Previous page |{key P} or {key K} or {key &#8592;} |- |Zoom in |{for win,linux}{key Ctrl+&#43;}{/for}{for mac}{key Command+&#43;}{/for} |- |Zoom out |{for win,linux}{key Ctrl+&#8722;}{/for}{for mac}{key Command+&#8722;}{/for} |- |Automatic Zoom |{for win,linux}{key Ctrl+0}{/for}{for mac}{key Command+0}{/for} |- |Rotate the document clockwise |{key R} |- |Rotate counterclockwise |{key Shift+R} |- |Switch to Presentation Mode |{for win,linux}{key Ctrl+Alt+P}{/for}{for mac}{key Command+Alt+P}{/for} |- |Choose Text Selection Tool |{key S} |- |Choose Hand Tool |{key H} |- |Focus the Page Number input box |{for win,linux}{key Ctrl+Alt+G}{/for}{for mac}{key Command+Alt+G}{/for} |} =Use a different PDF viewer for downloaded PDF files= When Firefox is set as the default PDF viewer, and you download a PDF file in Firefox and save it to your computer, you can use a different application to view those PDF files by following these steps: #Open the [[Where to find and manage downloaded files in Firefox|Downloads panel]] by clicking the [[Image:Fx91DownloadsButton]] download icon next to the address bar. (Alternatively, [[Where to find and manage downloaded files in Firefox#w_see-downloads-history|open the Downloads Library window]].) #[[Template:contextmenu]] the download entry for the PDF file you want to open. #;{for win,linux}[[Image:Fx99DownloadsPanel-PDFcontextmenu-Win]]{/for}{for mac}[[Image:Edit PDF 2]]{/for} #Click the context menu item for the system default PDF viewer{for win} (for example, click {menu Open in Adobe Acrobat Reader DC}){/for}{for mac} (for example, click {menu Open in Preview}){/for} to open the PDF file in that application. {note}'''Note:''' If you want to view a downloaded PDF file in another application, open the Downloads panel or Library window as explained above, but {for win,linux}click the file folder icon [[Image:Fx91DownloadsPanel-OpenFolderIcon]] for the PDF file entry. This will open the folder containing the downloaded file.{/for}{for mac}click the magnifying glass icon [[Image:MagnifyingGlass]] for the PDF file entry. This will open the folder containing the downloaded file in Finder.{/for} You can then {for win,linux}right-click{/for}{for mac}control-click{/for} the file, select {menu Open with} and choose the PDF viewer application you wish to use.{/note} =Choose another PDF viewer to use by default or set Firefox to always ask= {note}'''Note:''' When you choose another PDF viewer to use by default in Firefox, or, if you set Firefox to always ask you what to do with PDF files, any PDF files you open will also be saved to your Downloads folder (see [[Where to find and manage downloaded files in Firefox]]).{/note} ==Disable the built-in PDF viewer and use another viewer== {note} '''Note:''' If Firefox is not your current default PDF viewer, you will be prompted to set it as the default when opening a PDF file in Firefox. ;[[Image:Set FF as default PDF viewer prompt]] {/note} You can also set a different third-party PDF viewer to handle PDF files, instead of Firefox’s built-in PDF viewer. To switch from using the built-in PDF viewer to another viewer: #[[T:optionspreferences]] #In the {menu General} panel, go down to the '''Applications''' section. #Find '''Portable Document Format (PDF)''' in the list and click the entry to select it. #Click the arrow under the ''Action'' column for the above entry and select the PDF viewer you wish to use from the drop-down menu. #;{for mac}[[Image:Edit PDF 3]]{/for}{for linux}[[Image:Fx78Applications-PDF]]{/for}<!-- need linux image for fx77 showing drop-down options -->{for win}[[Image:Fx78Applications-PDF-Win]]{/for} {note}'''Note''': When {menu Open in Firefox} is the selected action, the built-in PDF viewer is used.{/note} ==Set Firefox to ask you what to do with PDF files== If you want Firefox to always ask you what to do with PDF files, follow the above steps to change the action for the '''Portable Document Format (PDF)''' entry, except select {menu Always ask} from the drop-down menu. The next time you click a link to download a PDF file, Firefox will show you a prompt asking what to do with the file. You can then choose to open it with Firefox's built-in PDF viewer, open it with a different PDF application, or you can choose to save the file. ;[[Image:Fx78openingPDF-AlwaysAsk]] For more information, see [[Manage file types and download actions in Firefox]]. =Troubleshoot problems with the PDF viewer= *With certain types of PDF files, the PDF Viewer may have problems displaying fonts, colors, or the whole document. If some PDF files don't render well or are blank, click the download button on the right side of the document header to open it with the default PDF viewer application on your computer. *If you can't open any PDF files with the built-in PDF viewer, a Firefox extension could be the cause. You can disable all of your extensions, to see if one of them was the problem.<!-- Maybe the user is using NoScript and doesn't want to disable it completely. Note that https://bugzilla.mozilla.org/show_bug.cgi?id=739058 is now resolved WORKSFORME as of 2013-02-06. --> For details, see [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems#w_disable-all-extensions]].

Späť na históriu