Ghostscript question

Discussion in 'Scripting' started by juanmanuelsanchez, Sep 21, 2018.

  1. juanmanuelsanchez

    juanmanuelsanchez MDL Novice

    Aug 21, 2009
    46
    1
    0
    Hello everyone !

    Well Im using ghostscript to create a pdf file from the file that gets to my printer in my POS program.

    Sadly all I get is a blank page:

    This is the command Im using

    C:\Program Files (x86)\gs\gs9.25\bin\gswin32c.exe -dBATCH -dSAFER -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -r800 -sOutputFile="%f" -

    The file generated is this:

    Code:
    %PDF-1.7
    %Ç쏢
    5 0 obj
    <</Length 6 0 R/Filter /FlateDecode>>
    stream
    xœ+T0Ð3°T0
    endstream
    endobj
    6 0 obj
    24
    endobj
    4 0 obj
    <</Type/Page/MediaBox [0 0 612 792]
    /Parent 3 0 R
    /Resources<</ProcSet[/PDF]
    >>
    /Contents 5 0 R
    >>
    endobj
    3 0 obj
    << /Type /Pages /Kids [
    4 0 R
    ] /Count 1
    >>
    endobj
    1 0 obj
    <</Type /Catalog /Pages 3 0 R
    /Metadata 7 0 R
    >>
    endobj
    7 0 obj
    <</Type/Metadata
    /Subtype/XML/Length 1344>>stream
    <?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
    <?adobe-xap-filters esc="CRLF"?>
    <x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='XMP toolkit 2.9.1-13, framework 1.6'>
    <rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#' xmlns:iX='http://ns.adobe.com/iX/1.0/'>
    <rdf:Description rdf:about='uuid:a2c12eda-bf7c-11e8-0000-973fc54cde79' xmlns:pdf='http://ns.adobe.com/pdf/1.3/' pdf:Producer='GPL Ghostscript 9.25'/>
    <rdf:Description rdf:about='uuid:a2c12eda-bf7c-11e8-0000-973fc54cde79' xmlns:xmp='http://ns.adobe.com/xap/1.0/'><xmp:ModifyDate>2018-09-20T16:04:25-06:00</xmp:ModifyDate>
    <xmp:CreateDate>2018-09-20T16:04:25-06:00</xmp:CreateDate>
    <xmp:CreatorTool>UnknownApplication</xmp:CreatorTool></rdf:Description>
    <rdf:Description rdf:about='uuid:a2c12eda-bf7c-11e8-0000-973fc54cde79' xmlns:xapMM='http://ns.adobe.com/xap/1.0/mm/' xapMM:DocumentID='uuid:a2c12eda-bf7c-11e8-0000-973fc54cde79'/>
    <rdf:Description rdf:about='uuid:a2c12eda-bf7c-11e8-0000-973fc54cde79' xmlns:dc='http://purl.org/dc/elements/1.1/' dc:format='application/pdf'><dc:title><rdf:Alt><rdf:li xml:lang='x-default'>Untitled</rdf:li></rdf:Alt></dc:title></rdf:Description>
    </rdf:RDF>
    </x:xmpmeta>
                                                                          
                                                                          
    <?xpacket end='w'?>
    endstream
    endobj
    2 0 obj
    <</Producer(GPL Ghostscript 9.25)
    /CreationDate(D:20180920160425-06'00')
    /ModDate(D:20180920160425-06'00')>>endobj
    xref
    0 8
    0000000000 65535 f
    0000000300 00000 n
    0000001784 00000 n
    0000000241 00000 n
    0000000127 00000 n
    0000000015 00000 n
    0000000109 00000 n
    0000000364 00000 n
    trailer
    << /Size 8 /Root 1 0 R /Info 2 0 R
    /ID [<0907D99EB233ADDB68EB570B384E6B43><0907D99EB233ADDB68EB570B384E6B43>]
    >>
    startxref
    1907
    %%EOF
    Any help is appreciated.
     
  2. juanmanuelsanchez

    juanmanuelsanchez MDL Novice

    Aug 21, 2009
    46
    1
    0
    Here is the generated PDF
     

    Attached Files: