Hi,

The original text in the pdf is shown without missing glyphs, the text is nothing special or with unicode characters. I don't understand why adding the same text gives problem with the selected font.

My goal is to use the original text in the pdf and replace some certain parts of text/ words.

Since replacing text is not possible I think, I read out the text, hide the original one (filter out BT and ET operators) and add new text with replaced words to the document again.

I want to use the font in the pdf, not replace it.

Regards Peter

On 11 feb 2012, at 13:49, Vahid Nasiri wrote:

Hello,
MS-Word uses "Font Fallback" mechanism to show "missing glyphs" of your selected font. more info: http://msdn.microsoft.com/en-us/goglobal/bb688134 iText/Sharp has the same capability which is defined in FontSelector class. Here you can define your "Font Substitution" strategy and then call fontSelector.Process method.


From: Peter van Raamsdonk <peet...@hotmail.com>
To: Post all your questions about iText here <itext-questions@lists.sourceforge.net >
Sent: Saturday, February 11, 2012 11:53 AM
Subject: [iText-questions] Font subsets document

Morning all,

I have a pdf created from a Word document (template). From the pdf I
get all the document base fonts used, I choose a basefont and create a
font from this to include some extra text.
When I add the text with contentByte from the stamper and setText with
hard coded text like "Uw" the text is shown with square before the w
(like the glyph can't be drawn).

If I use BaseFont.createFont() the text is shown normally but I want
the style/ font family properties of the font used originally.

Regards,

Peter van Raamsdonk



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to