John Jason Jordan wrote:
On Tue, 07 Nov 2006 09:20:22 +1100
Ross Johnson <[EMAIL PROTECTED]> dijo:
I've also had problems getting PDF readers to show certain fonts (e.g.
some barcodes) in Form fields etc. using the inbuilt OOo PDF export
while "printing" it to a file via Ghostscript's "pdfwrite" device worked
fine.
On Linux, use the OOo Printer Admin app (spadmin) to set up a "PDF
Export" printer using the following command in the printer properties:
/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="(OUTFILE)" -
I can't remember if this is setup as standard in OOo on Linux (it used
to be), or if I've inherited a really old config.
I have Ghostscript installed on my Linux computer. I don't have
spadmin, and can't find it to install it.
spadmin is part of the Linux OOo package and the standard OOo rpms put
it in /opt/openoffice.org2.0/program/spadmin.
If you can't find it, try running:
locate spadmin
Apart from it's use to set up printers for OOo, you use spadmin to
install fonts for OOo to use as well. So if you're installing fonts
directly into some location manually to get them to work with OOo then
this may be causing problems too, but I'm not at all sure about that.
But I printed the form from
Writer to test_form.ps (using a PostScript Level 2 printer that I own
and have installed). Then I edited the above line to:
/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite
-sInputFile="/home/jjj/Phonetics/test_form.ps"
-sOutputFile="/home/jjj/Phonetics/test_form3.pdf"
And tried it. It created test_form3.pdf in the Phonetics folder all
right, but it was a zero-byte file. Not sure where to go from here.
In this case, could you try:
/usr/bin/gs -q -dNOPAUSE -sDEVICE=pdfwrite \
-sOutputFile="/home/jjj/Phonetics/test_form3.pdf" \
/home/jjj/Phonetics/test_form.ps quit.ps
I.e. put the list of input files at the end (quit.ps is a file that gs
knows where to find and just provides the "quit" command to tell gs to
exit - otherwise gs will stay in interactive mode).
Ross
I am going to see if I can
figure out how to install a PostScript print-to-file driver on my Linux
computer. This should give me a PostScript print file. I can then
upload that file to Adobe and use their online PDF generator.
This did not work. I took the test_form.ps file, uploaded it, and
Adobe's online PDF creator happily converted it to a PDF. The resulting
PDF looks great, but it is not an editable PDF. As I was uploading it
there was an option to export it in Acrobat 3, 4 or 5 format. I chose
5, but I think that's the problem. I think you need Acrobat 7 or later
to create an editable PDF file. Adobe probably didn't want the online
generator to make editable PDF files because of DRM issues or something.
Anyway, it looks like my next option is to see if I can get Ghostview
to work. Failing that, I'm going to have to buy Acrobat 7 or 8, and
install it with quemu or vmware or win4lin or something. That is,
unless the OOo folx have fixed the bug that causes the font not to be
embedded for the controls in the form.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]