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)