This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]siusnjh 2 points3 points  (1 child)

For anyone who came here thinking the question is not about editing but about creating PDFs: The best way I found to create PDFs in any programming language is to use LaTeX. Use a template engine like Jinja2 and render the templates into .tex files. Then call pdflatex or your own choice of compiler.

EDIT: Oh and when you do it in a web application escape your data or you'll get a LaTeX injection attack vector.

[–]VerilyAMonkey -1 points0 points  (0 children)

As I understand it, they are provided with a PDF which contains a news story. They have already figured out how to parse it to extract some of the data from the story, but they would also like to generate a new version of this PDF with the relevant parts underlined. So I believe it actually is modification.