ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / PDF Reader control
  • Overview
  • Ribbon: "Display" pane
  • "General" group
  • "Clipboard" group
  • "Zoom" group
  • "Display mode" group
  • "Pages" group
  • "Tools" group
  • Ribbon: "Search" tab
  • Ribbon: "Modification" tab
  • "Rotation" group
  • "Pages" group
  • "Insert" group
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
PDF Reader control: Use ribbon and panes
Overview
The PDF Reader control includes multiple features accessible via:
  • The ribbon. Several tabs are available:
    • The "View" tab, which is used to perform the most common operations on the PDF file.
    • The "Find" tab, which is used to perform searches in the PDF file.
    • The "Edit" tab, which is used to edit the content of the PDF file.
  • The editor pane, which shows the thumbnails of the different pages.
Note: A tooltip is displayed on the scrollbar of the PDF Reader control, allowing you to see the current page number and total number of pages at all times..
Ribbon: "Display" pane
The "View" tab is used to perform the most common operations on a PDF file.
View tab
This tab contains the following groups:
  • General: Opens, prints or saves a PDF document.
  • Clipboard: manages the clipboard (copy).
  • Zoom: Allows you to zoom in on the PDF document.
  • Display mode: Manage display options.
  • Pages: Moves between different pages in the PDF document.
  • Tools: Select mouse action.

"General" group

The General group is used to open, print or save a PDF document.
General group
It is possible to:
  • Open an existing PDF file.
    • When a PDF file is opened, the file permissions are preserved (copy, print, etc.).
    • If the PDF file is password-protected, the user is prompted to enter the password.
  • Print the current PDF file. The print configuration window is displayed (with a preview of the document).
    Print options
    You can configure:
    • printer properties: Printer name, orientation, print mode, number of copies.
    • pages to be printed: all pages, current page or a selection of pages (pages separated by a "-" for a selection, pages separated by ',' for independent pages).
    • page sizing: reduce out-of-format pages, adjust page size or use actual page size. You can also choose the paper source according to the page format.
    You can also:
    • preview the different pages to print.
    • export as an email with the attached PDF file ("Export" button).
  • Save the current PDF file. This option allows you to save the PDF file with its changes (including page orientation). You can save the current file or use the "Save as" option.
    Remark: This feature is available from version 250064 (Update 2).. If you use the default window, the change is automatically made when the project is recompiled. If you have customized the internal window, it is necessary to compare the differences between the "IW_WindevAAF_PDFReaderRibbon" internal window of the WDAAF component and the one in "Programs\Data\Preset Windows\EN\AAF". For more details, see Project comparator.
Note: If the PDF file opened is a signed file, the "View" tab displays specific information.
For more details, see Signing documents.

"Clipboard" group

The Clipboard group allows you to copy the contents of the selection.
Clipboard group
This content can then be pasted into another application (notepad, etc.)..
Remarks:
  • You can copy content only if the open PDF file allows copying.
  • To select a section of the PDF document, you must be in "Selection mode".
  • The copy can also be performed via the context menu of the selection.

"Zoom" group

The Zoom group is used to set the zoom in a PDF document.
Zoom group
It is possible to:
  • Display the PDF document at 100%.
  • Display the PDF document in order for the page width to be entirely displayed.
  • Display the PDF document in the format of full pages on the screen.
  • Customize the zoom.

"Display mode" group

The Display mode group is used to define the display options of the current PDF document.
Display Mode group
It is possible to:
  • Display a single page.
  • Display two pages. In this case, you can use a cover page. The first page will be displayed on the right.
    Display in 2-page mode with cover page
Note: displaying a cover automatically changes the zoom so that the whole page is displayed..

"Pages" group

The Pages group is used to move within a PDF document.
Pages group
It is possible to:
  • Show or hide the thumbnail pane. This option displays a pane with several tabs:
    • The "Thumbnails" tab. This tab shows the thumbnails of the different PDF document pages and allows you to easily navigate between them.
    • The "Bookmarks" tab (if the document contains bookmarks) allows you to view and jump to a specific bookmark in the document.
    • The "Attachments" tab (if the document has attachments) lists the different attachments of the PDF document. Use the context menu to open or save an attachment.
  • See the total number of pages in the document.
  • See the number of the current page.
  • Move through the different pages using the arrow buttons.

"Tools" group

The Tools group allows you to set the mouse action.
Tools group
  • If the "Move" tool is selected, the cursor changes to a hand icon and allows you to quickly move through the different pages of the PDF file.
  • If the "Select" tool is selected, the cursor allows you to select and highlight text. Depending on the file permissions, you can copy the selected text.
  • If the "OCR" tool is selected, you can drag over an area to run OCR. The content of the area is analyzed and the corresponding text is copied to the clipboard.
Ribbon: "Search" tab
The "Find" tab is used to perform searches in the current PDF document.
Find tab
To start the search, all you have to do is type the sought text in the search area. You can specify the search options:
  • Complete word only: Seek only the specified word. The words containing the specified word will not be found. For example, if the search is performed on "child" with the "Whole word only" option, "children" will not be found.
  • Case sensitive: case sensitive for search field. For example, if the search is performed on "child" with the "Case sensitive" option, "Child" will not be found.
You can use the arrows to move through the different search results. If the search is completed, a message is displayed.
Ribbon: "Modification" tab
The "Edit" tab allows you to edit the current PDF document.
This tab contains the following groups:
  • Rotation, which allows you to rotate the pages of the PDF document.
  • Pages, which allows you to delete or import pages.
  • Insert, which allows you to add a watermark or a signature.

"Rotation" group

The Rotation group allows you to rotate the pages of the PDF document.
You can rotate all the pages of the document displayed in the PDF reader.
Remarks:
  • To rotate the current page, open the context menu of the page and select the desired option.
  • You can save the document after applying the rotations ("Save" button in the "General" group).

"Pages" group

The "Pages" group allows you to insert or delete pages in the PDF document.
It is possible to:
  • Delete the current page.
    Note: The current page can also be deleted from the page's context menu ("Delete page" option)..
  • Delete a set of pages. In this case, a window opens to indicate:
    • the number of the page(s) to be deleted (separated by a semicolon),
    • the range of pages to be deleted: simply indicate the first and last pages to be deleted.
    • the range of pages to keep: in this case, all pages will be deleted EXCEPT for the specified range..
  • Import pages: The import configuration window allows you to:
    • select the PDF file that contains the pages to be imported.
    • indicate the pages to be imported. You can import one or multiple pages, a range of pages or all the pages.
    • indicate the position of imported pages: at the beginning of the document, at the end of the document or before the current page.
You can save the document with the changes made ("Save" button in the "General" group).

"Insert" group

The "Insert" group allows you to insert a watermark or a signature in the PDF document.
It is possible to:
  • Add a watermark.
  • Add one or more handwritten signatures.
  • Add one or more digital signatures.
Adding a watermark
When the "Add a watermark" option is selected, a window opens to indicate:
  • the positioning of the watermark.
  • the watermark text.
  • the font, size and color of the text.
    Please note: the font used must already be present in the PDF file.. Otherwise, "Arial" will be automatically used.
  • the watermark transparency options.
Adding one or more handwritten signatures
To include handwritten signatures, expand "Handwritten signature".
You can:
  • Add a new signature.
  • Use an existing signature.
  • Delete an existing signature.
When a signature is added, a specific window appears. This window is used to:
  • Select the image file that contains the signature.
  • Sign using the mouse or a stylus.
    In this case, the color of the pen cannot be changed.
  • Write the signature in a text area, choosing the font, size, etc.
When an existing signature is selected, it appears in the current page of the PDF Reader control. It can be moved and positioned.
This allows you to use multiple handwritten signatures: a full signature and initials, for example. The initials can be positioned at the lower-right of the different pages.
Adding a digital signature
In this case, a PDF signing certificate is required.
When adding a digital signature, a specific window appears.
This window is used to:
  • Select the certificate to sign the PDF file.
  • Select the handwritten signature to be associated with the digital signature.
Caution:
  • A digital signature requires a signing certificate and a handwritten signature.
  • For Acrobat to recognize a signed PDF file, the organization that creates the certificate must be in the Adobe Approved Trust List or in the Certified Document Services program (CDS).
When a digitally signed PDF file is opened, a message appears at the upper-left corner of the PDF Reader control. Users can view the characteristics of the signature by clicking the message.
Saving a document that contains signatures
You can save the document with the changes made ("Save" button in the "General" group).
Opening a document that contains digital signatures:
When opening a digitally signed PDF file, a new area appears under the "View" tab, indicating that the document is signed.
Users can click the "signature" link to see the details of the signature.
In this window, the user can click the link to see the details of the certificate.
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help