PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 11:22 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
PostPosted: Thu Oct 29, 2009 10:26 pm 
Offline

Joined: Thu Oct 29, 2009 10:17 pm
Posts: 3
PDFSharp produces inverted an document when viewed in Adobe Reader 8.0.0, but the document appears fine when viewed in Adobe Reader 9.20., it appears that after printing the 'Thu 01 Oct' both the x and y coordinates get completely inverted.


Attachments:
File comment: Screenshot of the PDF inverted
image001.jpg
image001.jpg [ 168.92 KiB | Viewed 3130 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 30, 2009 1:23 am 
Offline

Joined: Thu Oct 29, 2009 10:17 pm
Posts: 3
If I remove all the vertical lines, it appears Ok in Adobe Reader 8.0.0. I tried reversing the line coordinates but that made no difference.

My code is:

Gfx.DrawLine(m_currentPen, MM2Points(left), MM2Points(top), MM2Points(right), MM2Points(bottom));

left = 42
top = 20
right = 42
bottom = 119


Top
 Profile  
Reply with quote  
PostPosted: Fri Oct 30, 2009 2:03 am 
Offline

Joined: Thu Oct 29, 2009 10:17 pm
Posts: 3
Found a work around, save the state before drawing the line and restore it afterwards:

PdfSharp.Drawing.XGraphicsState state = Gfx.Save();

// Draw vertical line

Gfx.Restore(state);


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: No registered users and 332 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