PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 27, 2017 6:50 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Problem with rotated PDF
PostPosted: Thu Apr 27, 2017 10:57 pm 
Offline

Joined: Thu Apr 27, 2017 10:35 pm
Posts: 2
Hello guys,

maybe somebody can help me with a problem...
I try to put together multiply pdf pages on one page, so far not a big deal when the pages don't have a rotation (aka PdfPage.Rotate == 0) but in this example (Rotate = 270) im going to show, the "basis point" is offset:

Inserting a PdfPage at coordinates (1000,1000) and draw a Line from coordinates (1000,1000) to (2000,2000):


Image

thanks for any help

Best Regards Q


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 28, 2017 9:47 am 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 255
Location: CCAA
Hi!

I'm afraid I do not understand the issue.

Are you using PDFsharp 1.50 beta 3b?

Have you tried the patch from this post:
viewtopic.php?p=9591#p9591
Remove three lines from PdfPage c'tor and try again. Not sure if this relates to your problem.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 28, 2017 1:16 pm 
Offline

Joined: Thu Apr 27, 2017 10:35 pm
Posts: 2
Hello,

1. The issue is the pdf page is getting placed on a wrong position when the page rotation isn't 0

2. yeah im using PdfSharpp 1.50 beta 3b (from NuGet)

3. i tried the patch it fixed at least the y Postion of the page but the x position has still some offset:

Image


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 5 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:  
Powered by phpBB® Forum Software © phpBB Group