PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Problem with rotated PDF
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3580
Page 1 of 1

Author:  Qwer [ Thu Apr 27, 2017 10:57 pm ]
Post subject:  Problem with rotated PDF

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

Author:  TH-Soft [ Fri Apr 28, 2017 9:47 am ]
Post subject:  Re: Problem with rotated PDF

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.

Author:  Qwer [ Fri Apr 28, 2017 1:16 pm ]
Post subject:  Re: Problem with rotated PDF

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/