Viewer Preferences: PageLayoutTwoColumnLeft : Viewer Preferences « PDF RTF « Java






Viewer Preferences: PageLayoutTwoColumnLeft

Viewer Preferences: PageLayoutTwoColumnLeft
import java.io.FileOutputStream;

import com.lowagie.text.Document;
import com.lowagie.text.Font;
import com.lowagie.text.PageSize;
import com.lowagie.text.Paragraph;
import com.lowagie.text.pdf.PdfWriter;

public class ViewerPreferencesPageLayoutTwoColumnLeft {
  public static void main(String[] args) {
    Document document = new Document(PageSize.A6);
    try {
      PdfWriter writer1 = PdfWriter.getInstance(document, new FileOutputStream("ViewerPreferencesPageLayoutTwoColumnLeft.pdf"));

      writer1.setViewerPreferences(PdfWriter.PageLayoutTwoColumnLeft);
      document.addTitle("This is the title.");
      document.open();

      document.add(new Paragraph( "text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text ", new Font(Font.HELVETICA, 12)));
    } catch (Exception de) {
      de.printStackTrace();
    }
    document.close();
  }
}
           
       








itext.zip( 1,748 k)

Related examples in the same category

1.Viewer Preferences: DisplayDocTitleViewer Preferences: DisplayDocTitle
2.Viewer Preferences: HideMenubarHideToolbarViewer Preferences: HideMenubarHideToolbar
3.Viewer Preferences: PageLayout, TwoColumnRight, PageModeFullScreen, NonFullScreen, PageModeUseThumbs
4.Viewer Preferences: PrintScalingNoneViewer Preferences: PrintScalingNone