PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 2:36 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Tue Feb 28, 2012 10:18 pm 
Offline

Joined: Tue Feb 28, 2012 9:36 pm
Posts: 11
Hi to every one.

First of all, I would like to say what a wonderful PDF library.

I would like to ask you for help:

As soon as I use XGraphics gfx = XGraphics.FromPdfPage(page); the new PDF gets distorted. If I use PDF file from another source, everything is OK.

Do anybody maybe have this problem or any bypass how to work around this?


PdfDocument document = PdfReader.Open(oldFile, PdfDocumentOpenMode.Modify);
PdfPage page = document.Pages[0];
XGraphics gfx = XGraphics.FromPdfPage(page);
document.Save(newFile);


Thanks, with regards,
Viljem


Attachments:
File comment: distorted file
out.zip [49.89 KiB]
Downloaded 627 times
Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 29, 2012 8:13 am 
Offline
PDFsharp Guru
User avatar

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

When I open out.pdf I get an empty page and an error message from Adobe Reader X.

I'm afraid we can't do much about it without running the source code that creates out.pdf in our debugger.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Feb 29, 2012 12:27 pm 
Offline

Joined: Tue Feb 28, 2012 9:36 pm
Posts: 11
Hi!

Thank you for fast reply.

That is interesting. I used Foxit Reader to view pdf files, and it opens without error message.

In out.pdf with foxitreader.jpg I have attached what I see.

input.pdf and output.pdf are test files that I use.
I just open input.pdf and save as output.pdf with XGraphics.FromPdfPage and I get this result.

Can we do something about it? You have mentioned running in debugger.


Attachments:
File comment: out.pdf with foxitreader.jpg
input.pdf
output.pdf

Debug.zip [78.24 KiB]
Downloaded 626 times
Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 05, 2012 8:38 am 
Offline
PDFsharp Guru
User avatar

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

I was able to replicate the problem, but I cannot fix it. My boss will have to look after it.
Company headquarters will be relocated in the ides of March, so I'm afraid he won't have time in the next fortnight or so.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Mar 12, 2012 9:37 am 
Offline

Joined: Tue Feb 28, 2012 9:36 pm
Posts: 11
Hi!

ok, great. I would appreciate any help. Please let me know the results.

Hope your move goes well.

With regards, Viljem


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 02, 2012 10:38 pm 
Offline

Joined: Fri Nov 02, 2012 10:32 pm
Posts: 1
Hi,

I am still facing this issue. Can you confirm if this defect is fixed in any of the latest PDFSharp version?

Thanks,
Anoop.


Top
 Profile  
Reply with quote  
PostPosted: Tue Nov 06, 2012 11:27 pm 
Offline

Joined: Tue Feb 28, 2012 9:36 pm
Posts: 11
Hi,

I am interested in this to.

Thank you.
With regards, Viljem


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 07, 2012 9:22 am 
Offline
PDFsharp Guru
User avatar

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

AFAIK this was not yet fixed.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Nov 07, 2012 1:15 pm 
Offline

Joined: Tue Feb 28, 2012 9:36 pm
Posts: 11
Hi

are there any plans to fix this?


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 84 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group