Skip to content

Instantly share code, notes, and snippets.

@canfan
Created August 11, 2020 16:37
Show Gist options
  • Save canfan/f17512c102bb7dda8ea4fcc9029bb8d7 to your computer and use it in GitHub Desktop.
Save canfan/f17512c102bb7dda8ea4fcc9029bb8d7 to your computer and use it in GitHub Desktop.
hello world example in PDF; via hn
Display the source blob
Display the rendered blob
Raw
%PDF-1.2
1 0 obj
<<
/Type /Catalog
/Pages 2 0 R
>>
endobj
2 0 obj
<<
/Type /Pages
/Kids [ 3 0 R ]
/Count 1
/MediaBox
[ 0 0 612 792 ]
>>
endobj
3 0 obj
<<
/Type /Page
/Parent 2 0 R
/Resources 4 0 R
/Contents 6 0 R
>>
endobj
4 0 obj
<<
/ProcSet[/PDF/Text]
/Font <<
/F1 5 0 R
>>
>>
endobj
5 0 obj
<<
/Type /Font
/Subtype /Type1
/BaseFont /Times-Roman
>>
endobj
6 0 obj
<<
/Length 51
>>
stream
BT
/F1 48 Tf
50 400 Td
(Hello World)Tj
ET
endstream
endobj
trailer
<<
/Root 1 0 R
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment