Skip to content

PDF

Related pages: Image

What is a PDF?

Cheatsheets

PDF structure

  • jberkenbilt/pdf-text-blog: Supplement to Text in PDF Blogs

  • The Structure of a PDF File. Introduction | by Jay Berkenbilt | Medium

    %PDF-2.0
    1 0 obj
    <<
    /Pages 2 0 R
    /Type /Catalog
    >>
    endobj
    2 0 obj
    <<
    /Count 1
    /Kids [
        3 0 R
    ]
    /Type /Pages
    >>
    endobj
    3 0 obj
    <<
    /Contents 4 0 R
    /MediaBox [ 0 0 612 792 ]
    /Parent 2 0 R
    /Resources <<
        /Font << /F1 5 0 R >>
    >>
    /Type /Page
    >>
    endobj
    4 0 obj
    <<
    /Length 44
    >>
    stream
    BT
    /F1 24 Tf
    72 720 Td
    (Potato) Tj
    ET
    endstream
    endobj
    5 0 obj
    <<
    /BaseFont /Helvetica
    /Encoding /WinAnsiEncoding
    /Subtype /Type1
    /Type /Font
    >>
    endobj
    
    xref
    0 6
    0000000000 65535 f 
    0000000009 00000 n 
    0000000062 00000 n 
    0000000133 00000 n 
    0000000277 00000 n 
    0000000372 00000 n 
    trailer <<
    /Root 1 0 R
    /Size 6
    /ID [<42841c13bbf709d79a200fa1691836f8><b1d8b5838eeafe16125317aa78e666aa>]
    >>
    startxref
    478
    %%EOF
    

PDF Syntax

Text in PDF

Basic PDF Tools

Adobe Acrobat

Documentation:

PDF viewers

MacOS

iOS

Windows

PDF editors

TBD

PDF toolkits

Comparing PDFs

Draftable

diff-pdf

diff-pdf --help
diff-pdf --view a.pdf b.pdf
diff-pdf --output-diff=diff.pdf a.pdf b.pdf

Advanced PDF Tools

qpdf: QDF and qpdf JSON

Documentation:

Tutorials:

QDF mode

qpdf JSON

qpdf --json-output example.pdf example.json

pikepdf