[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] enabling text snapshot in version 0.7.0
From: |
Ajay H. Daptardar |
Subject: |
Re: [Swftools-common] enabling text snapshot in version 0.7.0 |
Date: |
Fri, 27 Jan 2006 14:58:08 -0500 |
Hi Matthias,
> pdf2swf 0.7.0 doesn't have any support for the -f option; if you're
> feeling up to it, though, you can try to replace the gfxfont.c
> routines by the ones from the development snapshot. Not sure whether
> this will work, but most of the changes which enabled -f to function
> were in this file (check the CVS logs). Backporting some changes to
> lib/devices/swf.c (a.k.a. pdf2swf/swfoutput.cc) might also be necessary
I did manage to fix this. I basically replaced the function,
static SWFFONT* gfxfont_to_swffont(gfxfont_t*font, char* id) from
swfoutput.cc with the one from the development version. I discovered
that the only six bytes that were different from the swf produced by
swftools-0.7.0 and the dev version were those corresponding to the
swffont->layout->ascent
swffont->layout->descent
swffont->layout->leading
Once these were initialized, textsnapshot works!
I have just posted a new bug #20 regarding
> Error (1047951877): Too few (3) args to 'c' operator
> Error (1047951882): Too few (1) args to 'c' operator
> Error (1047951884): Too few (4) args to 'cm' operator
> Error (1047951893): Unknown operator 'Q53.687712'
however, I cannot seem to upload the pdf file that is causing this, it
is around 1.5M. I'll try sending it to you as an email attachment.
Best,
Ajay