I know you're using iTextSharp but unless it's fixed in Java porting to C# 
won't help.

Paulo

----- Original Message ----- 
From: "Nick Kowalewicz" <[email protected]>
To: "'Post all your questions about iText here'" 
<[email protected]>
Sent: Wednesday, March 25, 2009 7:35 PM
Subject: Re: [iText-questions] Bug: Merging Data containing a single 
quotewithRead-Only field


I'm using iTextSharp.


Regards,



    Nick K.
    http://www.nk-inc.com

-----Original Message-----
From: Paulo Soares [mailto:[email protected]]
Sent: Wednesday, March 25, 2009 2:23 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Bug: Merging Data containing a single quote
withRead-Only field

Does it work in Java?

Paulo

----- Original Message ----- 
From: "Nick Kowalewicz" <[email protected]>
To: <[email protected]>
Sent: Wednesday, March 25, 2009 3:19 PM
Subject: [iText-questions] Bug: Merging Data containing a single quote
withRead-Only field


Dear iText-Questions:

Sorry, but, I don't think the last message was readable, because, it was
sent as HTML format instead of Plain-text.


ORIGINAL MESSAGE:
A weird bug is happening when I merge FDF data with an "Acrobat" form PDF.

I'm attempting to merge data which contains a single quote, "St. Peter's
Church".

Only when the PDF form field is set with a "Read-Only" under Acrobat field
properties, the field doesn't display the single quote. It appears like,
"St. Peters Church", without the single quote after "Peter". But, when the
PDF form field is not Read-Only, the merged PDF form is display correctly
with the single quote "St. Peter's Church". This is happening in the newest
version of iTextSharp, but, the older versions do not have this problem.

Is this something I can edit in iTextSharp source code, or do I have to wait
for a new release?

I am also waiting for the latest release of iTextSharp, so I can merge
reader-extended LiveCycle forms without causing it to say the extensions
have been revoked. Do you know when this feature will be released, last time
I asked you said February, was that 2010?


Here is some sample code:
Dim reader As New iTextSharp.text.pdf.PdfReader(formFile)
Dim MemStream As New MemoryStream
Dim stamper As New iTextSharp.text.pdf.PdfStamper(reader, MemStream)
Dim fields As iTextSharp.text.pdf.AcroFields
fields = stamper.AcroFields

fields.SetField("PDFFieldName", "St. Peter's Church"))

stamper.FormFlattening = False
stamper.Writer.CloseStream = False
stamper.Close()



Regards,




Nick K.
http://www.nk-inc.com


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to