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

Unrecognized token in multi page doc
https://forum.pdfsharp.net/viewtopic.php?f=3&t=458
Page 1 of 1

Author:  Graham [ Wed Aug 27, 2008 4:26 pm ]
Post subject:  Unrecognized token in multi page doc

Hi,

I have been happily using PDFSharp for a while, great software, and I'm really hoping you can help me over a little hurdle.

I have a 5 page PDF document (can provide if required). I can open it straight into Acrobat reader no problem.

I am using PDFReader.Open() and I'm then using DrawString to output text onto the PDF. This was going great for the first 3 pages but when I add:
gfx = XGraphics.FromPdfPage(page4)

upon viewing the generated PDF when scrolling to this page I get:
"An unrecognized token '0.00rg' was found".

Even if I don't actually draw anything onto this page I get the error. If I do draw somethng to this page I get the error but I can see the page as it should look, including the string I have drawn on it, so it looks OK but how can I get the error message to go away?

Thanks in advance for any help you can give.

Graham

Author:  Thomas Hoevel [ Thu Aug 28, 2008 8:17 am ]
Post subject: 

Hello!

We need the PDF file to investigate this issue.

I sent you a PM.

Author:  Graham [ Thu Aug 28, 2008 8:28 am ]
Post subject: 

Hi Thomas,

Thanks for looking at this, the file has been submitted.

Many thanks

Graham

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