|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Apostrophe not displayed in pdf fieldHello,
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 = Truestamp1.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
------------------------------------------------------------------------------ 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 |
|
|
Re: Apostrophe not displayed in pdf fieldThe 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 |
|
|
Re: Apostrophe not displayed in pdf fieldHello Paulo:
Attached the pdf reader.
We use the font Rotis. When I fill in the form directly in Adobe Acrobat, apostrophes are displayed correctly. Is that means that there is no missing glyphs in the font ?
Thanks for your help,
Ève
2009/6/23 Paulo Soares <psoares@...> 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. ------------------------------------------------------------------------------ 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 |
|
|
Re: Apostrophe not displayed in pdf fieldIt's a bug that is already solved in the SVN. A new release will be available by the end of the month.
Paulo > -----Original Message----- > From: Eve L'Écuyer [mailto:eve.lecuyer@...] > Sent: Tuesday, June 23, 2009 5:17 PM > To: Post all your questions about iTextSharp here > Subject: Re: [itextsharp-questions] Apostrophe not displayed > in pdf field > > Hello Paulo: > Attached the pdf reader. > We use the font Rotis. When I fill in the form directly in > Adobe Acrobat, apostrophes are displayed correctly. Is that > means that there is no missing glyphs in the font ? > > Thanks for your help, > > Ève > > > > > 2009/6/23 Paulo Soares <psoares@...> > > > 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 <http://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 |
|
|
Re: Apostrophe not displayed in pdf fieldOK Thanks, I'll will wait for the release.
Eve
2009/6/23 Paulo Soares <psoares@...> It's a bug that is already solved in the SVN. A new release will be available by the end of the month. ------------------------------------------------------------------------------ _______________________________________________ itextsharp-questions mailing list itextsharp-questions@... https://lists.sourceforge.net/lists/listinfo/itextsharp-questions |
| Free embeddable forum powered by Nabble | Forum Help |