« Return to Thread: Apostrophe not displayed in pdf field

Re: Apostrophe not displayed in pdf field

by Paulo Soares-3 :: Rate this Message:

Reply to Author | View in Thread

The font in the PDF may not have the apostroph glyph. You may use a substitute font in AcroFields to take care of missing glyphs. It may also be something else that is already fixed in the SVN. It would help to see the PDF.

Paulo

> -----Original Message-----
> From: Eve L'Écuyer [mailto:eve.lecuyer@...]
> Sent: Tuesday, June 23, 2009 4:18 PM
> To: itextsharp-questions@...
> Subject: [itextsharp-questions] Apostrophe not displayed in pdf field
>
> Hello,
>  
> I find ITextSharp really usefull and easy to use but I have
> one problem that I have'nt been able to solve.
>  
>
> I am using iTextSharp in a asp.net  to fill fields on an
> existing PDF document using PdfReader and PdfStamper :
>
>
>
> Dim reader As PdfReader = New
> PdfReader(Request.PhysicalApplicationPath +
> "Certificats\caij_certificat_vide_sign.pdf")
>
> Dim stamp1 As PdfStamper = New PdfStamper(reader, New
> FileStream("X:\Certificats\" + CertificatId.ToString() +
> ".pdf", FileMode.Create))
>
> Dim form1 As AcroFields = stamp1.AcroFields()
>
> form1.SetField(
>
> "nom", "Ève L'Écuyer")
>
> form1.SetField(
>
> "titre1", "Passez maître dans l'art")
>
> stamp1.FormFlattening =
>
> True
>
> stamp1.Close()
>
> Response.Redirect(
>
> "X:\Certificats\" + CertificatId.ToString() + ".pdf")
>
> The problem is : Apostrophes are skipped and not displayed in
> the resulting pdf.
>
> For example : "Ève L'Écuyer" becomes "Ève LÉcuyer" and
> "Passez maître dans l'art" becomes "Passez maître dans lart"
>
> I have been looking  around for 2 days but can't find any solution.
>
> Thanks for any help!
>
> Ève L'Écuyer


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

 « Return to Thread: Apostrophe not displayed in pdf field