PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Mar 19, 2024 2:54 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: Sun Mar 18, 2018 3:42 pm 
Offline

Joined: Sun Mar 18, 2018 3:26 pm
Posts: 2
Hi all,

I was handed legacy code that is generating PDF documents.
The process is as follows:
Create Silverlight Canvas and bind to data in memory -> Create System.Drawing image from Canvas -> Generate PDF report from the image using PDFSharp library.
Application is hosted in ASP.NET Web Forms 4.0 web application.

Now everything works as expected if I run it on my local machine, however, as soon as I deploy application to QA machine it stats to generate empty pages.
Amount of pages generated is the same on both environments (e.g. if on my local machine generated PDF has 4 pages so does PDF generated on QA machine, with the diff. that on QA machine all pages are empty).

On FAQ page I see that PDFSharp doesn't depend on any other tool/library.

So my question is what can cause this diff. in generated PDF between local machine & QA machine.
Both are Windows machines, however, my local machine runs on Windows 10 whereas QA machine runs on Windows Server 2008 R2.

I'm not sharing any code because it's scattered and clumsy, but if any piece is of particular interest please do let me know and I'll post it here.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 19, 2018 9:33 am 
Offline

Joined: Sun Mar 18, 2018 3:26 pm
Posts: 2
To add to this, I tried Hello, World sample from the wiki and it runs on both local & QA environment creating pdf file with "Hello, World" added to it.


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 19, 2018 10:27 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3092
Location: Cologne, Germany
Hi!

Maybe image files cannot be found or cannot be accessed?
Maybe different Silverlight versions installed?

Add an image to the Hello World sample like the images in your application and investigate that.
Maybe add some debug information to the PDF (e.g. dimensions of the image).to see if it was found and loaded.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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 30 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