PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Apr 24, 2024 10:33 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Mar 15, 2024 5:30 pm 
Offline

Joined: Fri Mar 15, 2024 5:00 pm
Posts: 3
We have recently upgraded to PdfSharp6 in C# and WPF. In the previous version, we were able to pass page orientation, page size and max image DPI into the XpsConverter.Convert method; that would then get passed to PdfRenderer.CreatePage.

In PdfSharp 6.0 these parameters aren't available. Is there are workaround for this?


Attachments:
XpsConverter.jpg
XpsConverter.jpg [ 56.16 KiB | Viewed 3774 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Mar 21, 2024 5:13 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
amy_reapit wrote:
In PdfSharp 6.0 these parameters aren't available.
There's no error on your screen shot.
It's unclear which versions you are using.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2024 9:42 am 
Offline

Joined: Fri Mar 15, 2024 5:00 pm
Posts: 3
Thanks for your reply Thomas! The screenshot above is from the old version of PdfSharp; I've attached below a screenshot of the version numbers, and of the definition of the method in the new version. As you can see, I've expanded the dropdown so that all definitions are visible; there are none which take PageOrientation or PageSize.


Attachments:
File comment: PDFSharp6 definitions of convert method
PdfSharpConvertDefinitions.png
PdfSharpConvertDefinitions.png [ 140.45 KiB | Viewed 3266 times ]
File comment: PDFSharp version that we have moved to
PdfSharpVersion.png
PdfSharpVersion.png [ 3.08 KiB | Viewed 3266 times ]
Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2024 10:53 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
The package with version 1.0.2 is not from us. Contact the author of that package.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Apr 03, 2024 1:46 pm 
Offline

Joined: Fri Mar 15, 2024 5:00 pm
Posts: 3
Many thanks Thomas, I'll pick that up.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 315 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