• pdf definition

    From Hul Tytus@ht@panix.com to comp.lang.postscript on Sun Sep 27 23:59:34 2020
    From Newsgroup: comp.lang.postscript

    Anyone know where to find a technical definition of PDF? I need to convert
    a text file to ps and then to pdf. Text to ps is simple and complete. The ps to PDF format is the current trouble. Or maybe text to PDF directly. There is no need for compression, so, if that can be omitted it would good.
    Any suggestions would be appreciated.

    Hul
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From ken@ken@spamcop.net to comp.lang.postscript on Mon Sep 28 07:54:20 2020
    From Newsgroup: comp.lang.postscript

    In article <rkr916$b8j$1@reader1.panix.com>, ht@panix.com says...

    Anyone know where to find a technical definition of PDF?

    The PDF Reference Manual is the techincal definition of PDF. Its now an
    ISO specification which costs (IIRC) 250 CHF, however the 1.7 version
    was published fro free by Adobe and is still available from their web
    site. You'll have to Google for it, they move it around frequently.

    Unless you need the absolute newset features (which seems unlikely) the
    free version is quite adequate from a technical perspective, easier to
    read and more useful (for example it has an index, which the ISO
    specification lacks)

    I need to convert
    a text file to ps and then to pdf. Text to ps is simple and complete. The ps to PDF format is the current trouble. Or maybe text to PDF directly. There is
    no need for compression, so, if that can be omitted it would good.
    Any suggestions would be appreciated.

    Use Ghostscript ?

    Ken
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Jeffrey H. Coffield@jeffrey@digitalsynergyinc.com to comp.lang.postscript on Mon Sep 28 10:13:33 2020
    From Newsgroup: comp.lang.postscript



    On 09/27/2020 04:59 PM, Hul Tytus wrote:
    Anyone know where to find a technical definition of PDF? I need to convert
    a text file to ps and then to pdf. Text to ps is simple and complete. The ps to PDF format is the current trouble. Or maybe text to PDF directly. There is no need for compression, so, if that can be omitted it would good.
    Any suggestions would be appreciated.

    Hul


    Ghostscript will work if you can accept the speed.

    If you know Java then Apache PDFBox at https://pdfbox.apache.org/ will
    produce PDFs much faster.

    Jeff Coffield
    www.digitalsynergyinc.com
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Hul Tytus@ht@panix.com to comp.lang.postscript on Mon Sep 28 22:41:50 2020
    From Newsgroup: comp.lang.postscript

    Thanks Ken. The 1.7 version should be plenty. The hope is to make the
    text to pdf code as small as possible; Ghostscript's not a giant but close.

    Hul


    Ken <ken@spamcop.net> wrote:
    In article <rkr916$b8j$1@reader1.panix.com>, ht@panix.com says...

    Anyone know where to find a technical definition of PDF?

    The PDF Reference Manual is the techincal definition of PDF. Its now an
    ISO specification which costs (IIRC) 250 CHF, however the 1.7 version
    was published fro free by Adobe and is still available from their web
    site. You'll have to Google for it, they move it around frequently.

    Unless you need the absolute newset features (which seems unlikely) the
    free version is quite adequate from a technical perspective, easier to
    read and more useful (for example it has an index, which the ISO specification lacks)

    I need to convert
    a text file to ps and then to pdf. Text to ps is simple and complete. The ps
    to PDF format is the current trouble. Or maybe text to PDF directly. There is
    no need for compression, so, if that can be omitted it would good.
    Any suggestions would be appreciated.

    Use Ghostscript ?

    Ken
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Hul Tytus@ht@panix.com to comp.lang.postscript on Mon Sep 28 22:44:50 2020
    From Newsgroup: comp.lang.postscript

    Thanks for the suggestions. The Java version might be ok for a
    translation to c.

    Hul

    Jeffrey H. Coffield <jeffrey@digitalsynergyinc.com> wrote:


    On 09/27/2020 04:59 PM, Hul Tytus wrote:
    Anyone know where to find a technical definition of PDF? I need to convert
    a text file to ps and then to pdf. Text to ps is simple and complete. The ps
    to PDF format is the current trouble. Or maybe text to PDF directly. There is
    no need for compression, so, if that can be omitted it would good.
    Any suggestions would be appreciated.

    Hul


    Ghostscript will work if you can accept the speed.

    If you know Java then Apache PDFBox at https://pdfbox.apache.org/ will produce PDFs much faster.

    Jeff Coffield
    www.digitalsynergyinc.com
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Hul Tytus@ht@panix.com to comp.lang.postscript on Mon Sep 28 22:54:27 2020
    From Newsgroup: comp.lang.postscript

    Ken - google found the version 1.7 manual. Thanks again.

    Hul

    ken <ken@spamcop.net> wrote:
    In article <rkr916$b8j$1@reader1.panix.com>, ht@panix.com says...

    Anyone know where to find a technical definition of PDF?

    The PDF Reference Manual is the techincal definition of PDF. Its now an
    ISO specification which costs (IIRC) 250 CHF, however the 1.7 version
    was published fro free by Adobe and is still available from their web
    site. You'll have to Google for it, they move it around frequently.

    Unless you need the absolute newset features (which seems unlikely) the
    free version is quite adequate from a technical perspective, easier to
    read and more useful (for example it has an index, which the ISO specification lacks)

    I need to convert
    a text file to ps and then to pdf. Text to ps is simple and complete. The ps
    to PDF format is the current trouble. Or maybe text to PDF directly. There is
    no need for compression, so, if that can be omitted it would good.
    Any suggestions would be appreciated.

    Use Ghostscript ?

    Ken
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From jdh3@inspironwuxga@gmail.com to comp.lang.postscript on Wed Sep 30 09:02:26 2020
    From Newsgroup: comp.lang.postscript

    This will do txt2pdf using ghostscript as explained in gslp.ps:

    gs -q -sDEVICE=pdfwrite -sPAPERSIZE=letter --permit-file-read="$1" -dNOPAUSE -sOutputFile=$1.pdf -sPROGNAME=$0 -- gslp.ps --heading-center "`date`" "$1"

    I use these to avoid compression just not sure if this works for pdfwrite or just ps2write:

    -dCompressPages=false -dCompressStreams=false
    --- Synchronet 3.21d-Linux NewsLink 1.2