[Info-vax] GS convert PDF to PS.
Jan-Erik Söderholm
jan-erik.soderholm at telia.com
Sun Mar 13 15:15:05 EDT 2022
Den 2022-03-13 kl. 17:02, skrev Jeffrey H. Coffield:
>
>
> On 03/13/2022 08:13 AM, Jan-Erik Söderholm wrote:
>> Hi.
>>
>> I'm new to Ghostscript.
>> I try to convert a PDF file to a PS file.
>>
>> And yes, this a step in the "print a PDF file" project.
>> I had some issues with getting the Xerox printer to print
>> a plain PDF file so I thought about converting i to to PS...
>>
>> Have tried with:
>>
>> $ gs "-dNOPAUSE" "-sDEVICE=ps2write" "-sOutputFile=out.ps" "-fOUT.PDF"
>>
>> The input file OUT.PDF only contains one page with 6-7 text lines
>> and one Code128 barcode. File created from the Python tool Reportlab.
>> And "out" refers to the Python step, it is the "input" file to GS.
>
>>
>> Jan-Erik.
>>
>
> I haven't seen the use of "-f" for the input file before...
OK, I have tried with both -f switch and just having the PDF file
as a paramater. Same (negative) result.
> but I tried it on
> a pdf and it worked but my pdf only had text, not a barcode. I have seen
> some "creative" methods in using fonts in both ps and pdf before. Does the
> command work for you if the pdf has only normal text using a simple font
> like Helvetica?
>
I removed the barcode command from the ReportLab code, but it didn't help.
Here is an uuencoded version of my PDF file without the barcode.
Anyone having a GS setup are free to test it. It should be a framed
box with 7 lines of text. I have not used any specific font commands.
Well, that could not be posted but it got blocked with some
"binary file" message...
I anyone would like a copy of my PDF file (uuencoded),
I can mail a copy.
> Jeff
More information about the Info-vax
mailing list