Navigation: Create Ebooks And Publications > Displaying PDF and Securing PDF as Ebooks > |
|
HTML Executable lets you integrate a stand-alone PDF viewer in your publications and ebooks. Your end users can view and read PDF documents compiled in your publication without the need of Adobe Reader or any other PDF reader.
The built-in PDF engine handles almost all PDF documents fine: PDF files created by popular printer drivers, Adobe Acrobat, Microsoft Office or OpenOffice should be displayed and printed fine. However, PDF files created by imaging and advanced publishing tools may not be properly displayed. If this is the case, printing your PDF document using a printer driver such as PDF Creator may help.
Please keep in mind that the PDF engine is small and it cannot compete with professional reader tools like Adobe Reader. The primary goal of the PDF engine is to display simple documents. Anyway, if you get troubles with a PDF file, you can submit it to our technical support team for review. We do not guarantee however that we can come up with a solution in all cases. However, the defect PDF file may be used to improve the engine.
HTML Executable comes with a sample named "PDF Viewer" that illustrates the following features. You can compile this sample either by going to the "HTML Executable Samples PDF Sample" folder on your hard drive, or choose "Samples => PDF Viewer" when you start HTML Executable.
You may customize the behavior of the built-in PDF Viewer on the Application Settings => PDF Viewer page:
Thumbnails, bookmarks, text selection, page printing, page navigation, page rotation, zoom in and out functions are available.
Note: you can disable the "page rotation" feature. Page rotation is not compatible with text selection. You can also disable the View Commands panel.
It is possible to enable the display of the navigation bookmark panel at startup: when the PDF is loaded, its bookmarks are automatically listed. You can disable this feature at any time thanks to the HEShowPDFBookmarks global variable. You can set the with of the panel thanks to Navigation Panel Initial Width (in pixels).
Thumbnails are enabled by default. If you want to disable them, enable "Disable Page Thumbnails panel".
The PDF viewer can remember last current page of PDF files: when a user navigates from a PDF to another document, the PDF viewer stores the page number of the PDF. If the user comes back to the latter, the last page is restored. A menu option is also made available so that end users can disable this behavior if they want.
Non-Latin characters are supported.
PDFs are indexed by the search engine like HTML pages and included in search results if you enable "Index content from PDF files with the search engine" option in the Application Settings => PDF Viewer page. Specific PDF files can be excluded from the search thanks to File Properties - Security. It is possible to index PDF files even if the built-in PDF viewer engine is disabled. In that case, the default PDF reader will be used to display documents when a user clicks a search result.
However, after a search process, results from PDF documents will appear at the end of the list. If you want results from PDF documents to be treated as HTML ones when sorting by relevance, you need to turn this other option on: "Take PDF files into account while sorting search results by relevance". But note that this will automatically make your publication bigger (more or less depending on the size of your PDFs), since HTML Executable must convert PDF documents to raw text data and store this data into the publication. By default, this option is turned off to keep publications small.
Security profiles can be applied to PDF documents too: you can restrict access to PDF documents, define user rights like text copying, page printing...
The PDF engine displays the document title (read from PDF metadata) in the title bar and in search results.
Hyperlinks are supported by the PDF viewer. By default, these hyperlinks are highlighted (their background is grey) to inform the user they can be clicked (no hand cursor is displayed because the engine does not handle it). You can prevent this highlighting by checking the "Do not highlight hyperlinks in PDF files" option.
PDF files can be used in the Table of Contents.
Note: it is not possible to highlight a searched item in a PDF file (without HTML) and NOT allow the text to be copied using HTML Executable.
See PDF Viewer Advanced Features