Hi,
I have partially solved my issue of embedding the fonts.
For future reference of others am positing the steps I used for debugging
OTF fonts.
1.I downloaded PDF Vole from the below link
http://java.net/project/pdf-vole-pdf-debugger-and-analyzer-0.
This application shows the internal structure of a PDF document.
2 .From the structure I found that for otf files we need to add a extra
entry in the font file for SUB_TYPE for eg for Type1 it is "Type1C" in the
font file.
Adding this parameter resulted in otf files being embedded correctly.
But I am stuck with pfm/pfb files, there it needs to be 3 length parameters
namely length1/length2/length3
These parameters denotes the clear text portion,encrypted portion and the
fixed content portion respectively of the font file.
But in Itext I am not able to find the values of these parameters. Any help
or guidance would be very much appreciated.
Thanks
Arindam
On Mon, Mar 15, 2010 at 2:14 PM, Arindam Ray <[email protected]> wrote:
> Hi
> Thanks for your prompt reply ..
>
> I went through the PDF Reference document for Text i.e Chapter 5.
> I found that in the font dictionary for streams there are 3
> different lengths that needs to be specified for fixed content and encrypted
> contents for type 1 fonts.
>
> But I have no clue as to how to find these lengths using iText.
> If you could please point me to the right direction it would be very
> helpful.
>
> Thanks
> Arindam
>
>
>
> On Mon, Mar 15, 2010 at 1:03 PM, 1T3XT info <[email protected]> wrote:
>
>> Arindam Ray wrote:
>> > Hi,
>> > I am trying to embed otf and pfm fonts in existing PDF files.
>> > I followed the example as given in EmbedFontPostFacto
>> >
>> > Though the example works perfectly for ttf files.
>>
>> Correct, the example assumes you're using a TTF font.
>> That's why it's an "example", not the full solution.
>>
>> > In case of otf/pfm the
>> > font file is getting embedded but while opening the
>> > PDF it gives an error message "Cannot extract the embedded font CMR10
>> > Some characters maynot be displayed properly"
>> >
>> > Any help regarding this issue would be most appreciated.
>>
>> If you want to know the difference between embedding a
>> TTF font post facto and embedding a Type 1 font, you can
>> find all the information you need in the PDF reference.
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/itext-questions
>>
>> Buy the iText book: http://www.1t3xt.com/docs/book.php
>> 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/
>>
>
>
>
> --
> ARINDAM RAY
>
--
ARINDAM RAY
------------------------------------------------------------------------------
Download Intel® 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
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/