• what is the original pdf source code.

    From Gobal Krishnan V@21:1/5 to All on Fri Aug 12 00:49:23 2022
    how to view pdf file as in the pdf document. i need source code .

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ken@21:1/5 to All on Fri Aug 12 09:25:45 2022
    In article <c8023c3c-72b8-4bae-9958-c287c12df2dcn@googlegroups.com>, dr.bot.engineer@gmail.com says...

    how to view pdf file as in the pdf document. i need source code .

    There are a number of PDF consumers, many of them are open source. In no particular order:

    Poppler
    Ghostscript
    MuPDF
    pdf.js
    xpdf

    Evince (uses Poppler I believe)
    Sumatra (uses MuPDF)

    There are many others, Google will find more for you. Since these are
    open source projects the source code is available for all of them.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Flynn@21:1/5 to Gobal Krishnan V on Mon Sep 12 12:17:20 2022
    On 12/08/2022 08:49, Gobal Krishnan V wrote:
    how to view pdf file as in the pdf document. i need source code .

    Open the file with an editor that allows binary view, like Emacs.

    1. The source code of a PDF file is not human-readable. It looks like
    this and lots more:

    %PDF-1.5
    %\344\360\355\370
    8 0 obj
    <</Filter/FlateDecode/Length 492>>
    stream
    x\332\225T\273n\33404P\354\3634U\3744A*|/ ^\T^D\2104KWAF\3244Yit\212\2724T
    \367\377\215\367AIAT\225314\\204\223\226\263\2733\303%\325CYe\360g4U84E\2514L\27

    2. You can convert it to Postscript using pdf2ps, then it is at least
    ASCII text, but still not easily human-readable (you need to learn the Postscript language):

    %!PS-Adobe-3.0
    %%Invocation: path/gs -q -dNOPAUSE -dBATCH -P- -dSAFER -sDEVICE=ps2write -sOutputFile=? ? ? ? -f ?
    %%BoundingBox: 0 0 596 842
    %%HiResBoundingBox: 0 0 596.00 842.00
    %%Creator: GPL Ghostscript 950 (ps2write)
    %%LanguageLevel: 2
    %%CreationDate: D:20220912121506+01'00'
    %%Pages: 1
    %%EndComments
    %%BeginProlog
    /DSC_OPDFREAD true def
    /SetPageSize true def
    /EPS2Write false def
    currentdict/DSC_OPDFREAD known{
    currentdict/DSC_OPDFREAD get
    }{
    false
    }ifelse
    10 dict begin

    3. If you want the source code of the document, you need to use the
    application that generated it, like LaTeX, Word, InDesign, XPress, etc.

    Can you explain what you want to do?

    Peter

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)