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
|