I use iText for a little manipulation of my PDF files through Java, and I would like to have the PDF file open by default, so that a single page fits into the window that opens, that this window is preferably filled with a screen, and that it has a thumbnail with left side. I know that other programs can set these viewing options, so I assume that iText can, but I did not understand how or what part of the API I should look at. Do you have any suggestions?
Greetings
Nick
You must use setViewPreferencesthe PdfWriter class. Example:
setViewPreferences
writer.setViewerPreferences(PdfWriter.FitWindow | PdfWriter.PageModeUseThumbs);
/ , , PdfWriter.HideToolbar; , , PdfWriter.PageModeFullScreen. ara -, |.
PdfWriter.HideToolbar
PdfWriter.PageModeFullScreen
|
Source: https://habr.com/ru/post/1753319/More articles:Get url for page that opens in window.onunload window - javascriptis there any C # qualification I can go for? - c #Java Member Initialization Templates - javaCan a ServiceFoute WCF route prefix contain a path value? - .net-4.0How can I use the garbage collector? - garbage-collectionNegative to -1, 0 to 0, positive to 1 - .netHow to connect code to a running iphone application - debuggingHide when clicking on a document, except when clicking on a div - jqueryNetbeans - Can't find include file: QtGui - qtPartial failure in the extension method fails - c #All Articles