PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

XGraphics.FromPdfPage distorts the pdf file
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1926
Page 1 of 1

Author:  viljemt [ Tue Feb 28, 2012 10:18 pm ]
Post subject:  XGraphics.FromPdfPage distorts the pdf file

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

Author:  Thomas Hoevel [ Wed Feb 29, 2012 8:13 am ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

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.

Author:  viljemt [ Wed Feb 29, 2012 12:27 pm ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

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 627 times

Author:  Thomas Hoevel [ Mon Mar 05, 2012 8:38 am ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

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.

Author:  viljemt [ Mon Mar 12, 2012 9:37 am ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

Hi!

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

Hope your move goes well.

With regards, Viljem

Author:  Anoop [ Fri Nov 02, 2012 10:38 pm ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

Hi,

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

Thanks,
Anoop.

Author:  viljemt [ Tue Nov 06, 2012 11:27 pm ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

Hi,

I am interested in this to.

Thank you.
With regards, Viljem

Author:  Thomas Hoevel [ Wed Nov 07, 2012 9:22 am ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

Hi!

AFAIK this was not yet fixed.

Author:  viljemt [ Wed Nov 07, 2012 1:15 pm ]
Post subject:  Re: XGraphics.FromPdfPage distorts the pdf file

Hi

are there any plans to fix this?

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