yyn0210 / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Embedding Fonts #236

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Ok.. im trying to embed Georgia in a PDF.. it works once but on second
attempt (without a browsers refresh) i get the following error:

Error: Error: unrecognized font file.
    at org.alivepdf.fonts::AFMParser/makeFont()
    at org.alivepdf.fonts::AFMParser()
    at org.alivepdf.fonts::EmbeddedFont()
    at NIS_fla::MainTimeline/generatePDF()

im using the latest version of the library and loading the TTF and AFM
files into bytearrays that i then feed the EmbedFont function in the
AlivePdf library... this all happens at run time, with the pdf being made
on a button click.. you can see a mis-functioning example here.. 

http://www.unit60.com/transparency/nis/

like i said the first time you create a pdf it works fine, but if you
reclick a second time it throws an error... i've tried to reset the
bytearray.position = 0 but this doesnt work.. just wanted to raise this as
an issue.. amazing library by the way!! simply awesome!

Original issue reported on code.google.com by vexki...@gmail.com on 29 Apr 2010 at 11:27

GoogleCodeExporter commented 8 years ago
Hi there,

I fixed that issue in the revision 268 on the SVN. Can you test it and let me 
know ?

Thanks a lot for the kind words about AlivePDF :)

best,

Thibault

Original comment by thibault.imbert on 25 May 2010 at 8:37