We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I create booklet for the PDF document?

 

We can create booklet for the pdf document by using PdfBookletCreator class. The resulting document can be printed and stapled down the middle to make a booklet, that is, each pages contains two sub page.

Here is the sample code snippet to create booklet

C#

 //Load a PDF document

PdfLoadedDocument ldoc = new PdfLoadedDocument(txtUrl.Text);

 //Create booklet with two sides

PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(float.Parse(txtWidth.Text), float.Parse(txtHeight.Text)), chkTwoSide.Checked);

 //Save the document

doc.Save("Sample.pdf");

VB

 ''Load a PDF document

Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument(txtUrl.Text)

 ''Create booklet with two sides

Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(Single.Parse(txtWidth.Text), Single.Parse(txtHeight.Text)), chkTwoSide.Checked)

 ''Save the document

doc.Save("Sample.pdf")

Please look into the simple sample from the below specified location.

Sample

Article ID: Published Date: Last Revised Date: Platform: Control:
885 04/30/2011 07/10/2014 WinForms PDF
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon