{oapdf_gg}
Office software is closely linked to the PDF,the PDF is also must have to control!      Set home Page  Add to Favorites  
You are here:Home > PDF Application > PDF Development
PDF Development
Using C# language the whole PDF document Strategy Guide Graphic
Finishing by: Date:2009-04-17 20:59:48 Popularity: Tags:

the result can only be the next to see a new page (when the page initialization method call), sample code, see code 0107, you must be prepared to name a watermark.jpg picture, as Figure :

 

u reader parameters:

you can approach through the following PDF files for the specified number of readers (such as Adobe Reader) parameters:

public void setViewerPreferences (int preferences)

sample code in 0108, specify the following parameters:

writerA.setViewerPreferences (PdfWriter.PageLayoutTwoColumnLeft);

writerB.setViewerPreferences (PdfWriter.HideMenubar | PdfWriter.HideToolbar);

writerC.setViewerPreferences (PdfWriter.PageLayoutTwoColumnLeft | PdfWriter.PageModeFullScreen | PdfWriter.NonFullScreenPageModeUseThumbs);

As you can see, the parameters can use the following constants:

l file was opened, the page layout used in one of the following:

    • PdfWriter.PageLayoutSinglePage - display only a page at the same time
    • PdfWriter. PageLayoutOneColumn - a separate display
    • PdfWriter. PageLayoutTwoColumnLeft - double row shows that odd-numbered page in the left
    • PdfWriter. PageLayoutTwoColumnRight - double row shows that odd-numbered pages in the right

l file is open, the page model used the following one:

    • PdfWriter. PageModeUseNone - neither have shown that steel does not show thumbnails
    • PdfWriter. PageModeUseOutlines - shows the outline
    • PdfWriter. PageModeUseThumbs - shows thumbnails
    • PdfWriter. PageModeFullScreen - full-screen mode, no menu, windows control windows or any other visible controls

l PdfWriter. HideToolbar - activated when the document, the reader is hidden (such as Adobe Reader) Article tools

l PdfWriter. HideMenubar - activated when the document, whether or not to hide the menu reader.

l PdfWriter. HideWindowUI - activated when the document when the reader to hide interface elements, such as scroll bars, navigation, etc., but simply to retain documents show

l PdfWriter. FitWindow - whether or not to adjust the document display window size to fit the first page.

l PdfWriter.CenterWindow - whether or not the center of the screen into the document window

l in full-screen mode, specify how to display interface elements (choose a)

    • PdfWriter. NonFullScreenPageModeUseNone - neither have shown that steel does not show thumbnails
    • PdfWriter. NonFullScreenPageModeUseOutlines - that of the big steel
    • PdfWriter. NonFullScreenPageModeUseThumbs - shows thumbnails

Description:You can only call PdfWriter in the category of these methods.

there isArticle InformationsComment Information
Category column

Site Help | Site Map | Feedback |
OAPDF.COM Copyright 2009 V1.1