PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 4:43 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 14, 2018 11:54 am 
Offline

Joined: Fri Feb 02, 2018 9:01 am
Posts: 2
Hello Support team,
I am using PDFSharp.net dll in my .net application for converting XPS to PDF Files.
Somehow,I am not able to export more than 50 pages.I have checked PDFSharp and PdfSharp.Xps code in that I got 50 page limitation in following method

CODE =>

private static void DoConvert(XpsDocument xpsDocument, string pdfFilename, int docIndex)

I have tried to remove that limitation from code but application starts getting crashed.
I am getting following exception in your code

system.outofmemoryexception


can you please tell me what I need to do to solve crash issue.
Please let me know, if you need anything from our side.

Awaiting your reply !!!
Thanks,
Pooja.


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 14, 2018 12:00 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
Hi!
pooja wrote:
can you please tell me what I need to do to solve crash issue.
Try running the program in 64 bit mode so it can use more than 2 GiB of memory.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 15, 2018 12:49 pm 
Offline

Joined: Fri Feb 02, 2018 9:01 am
Posts: 2
Hi,

Assertion failed exception occured while converting XPS file to PDF using PDF sharp.

Can you please help me with that.


Awaiting your reply !!!
Thanks,
Pooja.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 15, 2018 3:49 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
Hi!
pooja wrote:
Assertion failed exception occured while converting XPS file to PDF using PDF sharp.
Assertions are not exceptions, they are warnings that occur in Debug build only.
Run in Release build and you will see no more assertions ...

See also:
viewtopic.php?f=2&t=832

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 22 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