Relative Content

Tag Archive for pythonpdf

How to create hyperlinks in a PDF to embedded PDFs using Python?

Using Python, I want to embed multiple PDFs into a single PDF. Then in this single PDF, I want to create hyperlinks (not via annotations but instead link text in the PDF directly). I want to know if there is any existing python PDF library to achieve this and how it would be possible to do so.

Make a PDF unreadable (reversible)

I’m programming a software using python that works with PDFs. I want to make a function to make a PDF unreadable, i was thinking in read the pdf as a txt and remove the first character of the txt (% in all cases). The problem is that python doesn’t read the txt, it shows me this error:

Python – pdfquery load() creating incorrect element tree

I am trying to scrape multiple pdfs using pdfquery, and it has been working perfectly up until now. When I try to load a certain pdf, it produces an xml tree containing only the bbox for the entire page, and not anything for the other cells in the pdf.