Hoping for some guidance on a perplexing issue.  Thanks in advance.

Our .NET C# application currently uses iTextSharp to perform the following on a 
.pdf document...


*         Iterate the pages of a .pdf


*         Use pdfReader.GetPageContent() to write the contents of the page to a 
string variable...

string PageData = 
System.Text.Encoding.UTF8.GetString(pdfReader.GetPageContent(page));


*         Do some manipulation of the PageData string variable using a regular 
expression.


*         Over write the existing page data with our manipulated PageData...

pdfReader.SetPageContent(page, System.Text.Encoding.UTF8.GetBytes(PageData));

The execution of the pdfReader.SetPageContent() method(above) is generating a 
bug wherein specialized Unicode characters that render correctly in the 
original text are
no longer rendered correctly  following the execution of this method.

I've tried modifying the code to
pdfReader.SetPageContent(page, System.Text.Encoding.Unicode.GetBytes(PageData));

This at first appears to fix the rendering issue(visually) but when the page 
with the specialized Unicode
Characters exist loads, Adobe Reader persents an error message box saying the 
page has errors.

Thanks,
Tim Heffernan
Aries Systems Corporation
Software Engineer
Tel:  978-975-7570 x123
Fax: 978-975-3811
theffer...@ariessys.com<mailto:theffer...@ariessys.com>
www.editorialmanager.com<http://www.editorialmanager.com/>

[cid:image001.png@01CAD571.2F5CEBC0]

200 Sutton Street  * North Andover, MA * 01845 * USA

This message is confidential and is intended solely for the use of the 
individual(s) to whom it is addressed.
If you have received this message in error, do not open any attachment but 
please notify the sender (above) and delete this message from your system.

<<inline: image001.png>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to