PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jun 12, 2021 6:13 pm

All times are UTC

Forum rules

Please read this before posting on this forum: Forum Rules

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Aug 28, 2007 9:31 am 

Joined: Fri Aug 03, 2007 7:29 am
Posts: 2
Location: Regensburg, Bavaria, Germany
Adding two Outlines to pages with landscape orientation changes the orientatiuon of the used page to portrait.

    Private Sub example()
        Dim pdfDoc As PdfSharp.Pdf.PdfDocument
        pdfDoc = PdfSharp.Pdf.IO.PdfReader.Open("c:\Mixed Landscape Portrait.pdf")
        Dim pdfPage As PdfSharp.Pdf.PdfPage

        pdfPage = pdfDoc.Pages.Item(0)
        pdfDoc.Outlines.Add("Bookmark on Page 1", pdfPage)

        pdfPage = pdfDoc.Pages.Item(1)
        pdfDoc.Outlines.Add("Bookmark on Page 2", pdfPage)

    End Sub

The file "Mixed Landscape Portrait.pdf" contains two pages, one landscape and one portrait.

After running the example code both pages are portrait.


Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group