Re:Show HN: I am building a new Python library to read/write...
by manv1 on Friday November 18, 2022 @12:21AM
(#33650703)
You can include binary data in PDF files, so it's not necessarily ASCII.
[ Parent
| on HN ]
Re:Show HN: I am building a new Python library to read/write...
by jchw on Friday November 18, 2022 @12:52AM
(#33650913)
The structure however is still largely ASCII text. It needs to be treated as binary of course, due to the use of offsets everywhere and the fact that the xref table is hardcoded to have a specific length per xref in bytes. But if you look at a lot of simple or old PDFs, it's not hard to find some that don't use any binary encodings.
Re:Show HN: I am building a new Python library to read/write...
by naniwaduni on Friday November 18, 2022 @12:55AM
(#33650930)
Sounds a lot like the tar file format.