On Sun, Sep 25, 2005 at 06:44:06AM +0400, Alexandre Prokoudine wrote:
On 9/24/05, Bryce Harrington <bryce@...961...> wrote:
On Sat, Sep 24, 2005 at 05:58:23AM +0400, Alexandre Prokoudine wrote:
On 9/24/05, Bryce Harrington <bryce@...961...> wrote:
I can't find any Text::PDF::Util module at CPAN
There is a Text::PDF::Utils in this package:
I have it in /usr/share/perl/5.8/Text/PDF/, but Perl complains about Text::PDF::Util, not Text::PDF::Utils.
Sounds like a typo in the script perhaps...? Grep for Utils and correct it to Util and see if that fixes it.
Still no fun
avp@...998...:~/soft/build/graphics/pdf2svg$ perl -e "use PDF::API2" Can't locate PDF/API2/Basic/PDF/Util.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl/5.8/PDF/API2.pm line 51. BEGIN failed--compilation aborted at /usr/share/perl/5.8/PDF/API2.pm line 51. Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1.
This is what I did to get it to run:
# cpan -i PDF::API2
Then from the pdf2svg directory I ran it on a PDF file:
$ ./pdf2svg myfile.pdf
It created SVG files. Sometimes it wrote them to disk, sometimes it printed to stdout and I redirected it to a file.
In all cases, though, the SVG files that pdf2svg could not be read in Inkscape. I got errors from inkscape such as the following:
/home/bryce/Build/pdf2svg/OSDL.svg:702: parser error : StartTag: invalid element name r:#000000; font-family: Thorndale, Times New Roman, serif; letter-spacing: 0;"><
Hrm............
Bryce