PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

PdfSharp6 - XpsConverter with PageOrientation & PageSize
http://forum.pdfsharp.de/viewtopic.php?f=2&t=4562
Page 1 of 1

Author:  amy_reapit [ Fri Mar 15, 2024 5:30 pm ]
Post subject:  PdfSharp6 - XpsConverter with PageOrientation & PageSize

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 10443 times ]

Author:  Thomas Hoevel [ Thu Mar 21, 2024 5:13 pm ]
Post subject:  Re: PdfSharp6 - XpsConverter with PageOrientation & PageSize

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.

Author:  amy_reapit [ Wed Apr 03, 2024 9:42 am ]
Post subject:  Re: PdfSharp6 - XpsConverter with PageOrientation & PageSize

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 9935 times ]
File comment: PDFSharp version that we have moved to
PdfSharpVersion.png
PdfSharpVersion.png [ 3.08 KiB | Viewed 9935 times ]

Author:  Thomas Hoevel [ Wed Apr 03, 2024 10:53 am ]
Post subject:  Re: PdfSharp6 - XpsConverter with PageOrientation & PageSize

The package with version 1.0.2 is not from us. Contact the author of that package.

Author:  amy_reapit [ Wed Apr 03, 2024 1:46 pm ]
Post subject:  Re: PdfSharp6 - XpsConverter with PageOrientation & PageSize

Many thanks Thomas, I'll pick that up.

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