Better HN
topnewbestaskshowjobs
Log inSign up

desgeeko

330 karma · joined Jul 17, 2021 (5y ago) · 16 submissions

Submissions

1.

Show HN: Montmark – A lightweight, fast pure-Python Markdown parser(github.com ↗)

2 points · by desgeeko · 5mo ago · discuss

comment 1y ago · link · parent

Thank you very much!

comment 1y ago · link · parent

Correct, PDFSyntax implements everything at the lowest level. You can ignore the HTML visualization and use it as an API to access PDF objects. Why? Because I started a very small tool as a week-end project and I got hooked reading the PDF Specification so it is becoming a general purpose PDF library for Python. I am not familiar with other libraries but I have the impression that mine implements things that are often overlooked in others, like incremental updates.

comment 1y ago · link · parent

Yes, I value simplicity and the interactivity offered by basic HTML and CSS is sufficient for my use case :)

comment 1y ago · link · parent

Thanks for noticing! You're right, I will fix that very soon.

6.

Show HN: HTML visualization of a PDF file's internal structure(github.com ↗)

451 points · by desgeeko · 1y ago · 57 comments

comment 2y ago · link · parent

My tool (PDFSyntax[1], mentioned in this thread) is a Python library that is able to both inspect and transform PDF files.

Depending on your transformation use case, you may write an incremental update with only a few bytes at the end of the original file instead of rewriting it entirely. To my knowledge this feature of the PDF specification is often overlooked and not a lot of libraries implements it.

It is a work in progress and I have not developed functions for images yet, though.

[1] https://github.com/desgeeko/pdfsyntax

comment 2y ago · link · parent

I am the author of PDFSyntax, thanks for mentioning it!

The HTML output is like a pretty print where you can read view objects and follow links to other objects.

Since I have added a new command (disasm) that is CLI oriented and displays a greppable summary of the structure. Here is an explanation: https://github.com/desgeeko/pdfsyntax/blob/main/docs/disasse...

9.

Show HN: PDFSyntax, a Python library to inspect and transform PDF files(pdfsyntax.dev ↗)

1 points · by desgeeko · 2y ago · discuss

comment 3y ago · link · parent

If you want to continue this journey and learn more about PDF, you can read the anatomy of a file I documented recently: https://pdfsyntax.dev/introduction_pdf_syntax.html

11.

A Quick Introduction to PDF Syntax(pdfsyntax.dev ↗)

4 points · by desgeeko · 3y ago · discuss

12.

Show HN: I am building a new Python library to read/write PDF files(github.com ↗)

279 points · by desgeeko · 4y ago · 121 comments

13.

Show HN: a practical introduction to Kryptos K1-K3 brute-force decryption(github.com ↗)

1 points · by desgeeko · 4y ago · discuss

comment 5y ago · link · parent

When you develop an application reading or writing PDF files, it may be useful to inspect the content of a file in order to understand what is inside and how objects are linked. Especially when dealing with PDF version 1.5 or above when multiple objects can be compressed together into an object stream: opening the raw file in a text editor would not help you. You can find similar tools with a text based interface or with a Java client, but I am not aware of another tool producing HTML for easy navigation in the PDF structure.

15.

Show HN: Browse the internal structure of a PDF file(github.com ↗)

17 points · by desgeeko · 5y ago · 2 comments