swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] Patch for pdf2swf (CID codemap file options)


From: Matthias Kramm
Subject: Re: [Swftools-common] Patch for pdf2swf (CID codemap file options)
Date: Sat, 23 Oct 2004 20:25:33 +0200
User-agent: Mutt/1.5.6i

On Thu, Oct 21, 2004 at 04:09:46AM +0900, Moriyoshi Koizumi wrote:
> >You're right- the code in GlobalParams.cc only looks for ~/.xpdfrc
> >and .xpdfrc, not /etc/xpdfrc.
> >Maybe this should even be removed, to prevent side effects from
> >xpdf confiration "leaking" into pdf2swf.
> 
> I think it should be removed, too.

Done.

> Actually I'm not willing to type somewhat enigmatic parameter sequence
> every time. It was just a kind of workaround, because I didn't think
> it was a good idea to drastically change the codes related to one 
> feature in a mere tiny patch, XPDF part in particular as heavy-alteration of
> an embedded package might often cause synchronisation problem in the
> future.

It's not that bad. There are quite a number of changes by now anyway
which have to be applied every time the xpdf package in swftools is
upgraded.

> The situation is a bit more complicated; a PDF isn't always written in a
> single language and we can't tell which language it is written :)

Are you saying that you need to use the "right" languagepack for
every PDF, but can't have more than one around?
Or would you also be able to just include *all* languagepacks, and then be
able to convert every PDF, no matter the language?

> A feasible way is rewrite the GlobalParams.cc to search for an
> individual parameter file in each NLS directory, which may be put in
> /usr/local/share/swftools/encodings or whatever. This way the necessary
> files would be automatically collected at runtime and then all users 
> have to
> do when they want to use misc. languages should be to extract the 
> archive
> in that directory.

Ok- I renamed the xpdfrc config files now anyway.
Config files now processed are:

/etc/pdf2swf.conf
$HOME/.pdf2swf.conf

So if you're o.k. with putting the languagepack parameters into, say,
~/.pdf2swf.conf, we wouldn't need any other changes to pdf2swf.
(Probably the only way to beat that approach in terms of convenience
 would be to introduce a --languagepack option to pdf2swf which you can
 point directly to the .tar.gz file you downloaded from the xpdf
 download page ;))

Greetings

Matthias






reply via email to

[Prev in Thread] Current Thread [Next in Thread]