Tag Info

New answers tagged

0

Just add BookmarkBegin before each bookmark entry, as in BookmarkBegin BookmarkTitle: Front cover BookmarkLevel: 1 BookmarkPageNumber: 1 BookmarkBegin ⋮


1

You can use package htmldoc, which is much easier to get working than pandoc. It takes a list of html files and resolves the hyperlinks between them to produce a single pdf with working links, and includes the images. htmldoc $(find help/manual -name '*html' | sort) --outfile /tmp/out.pdf Of course, it would help to know in what order to collate the html ...


1

First off, not sure I can get the bookmarks and such made automatically, as nice as that would be. You can manually add them, though, afterwards. Try opening the HTML file in firefox, and going to file -> print (ctrl+p). Then, click "Print to File" and click 'PDF'. Then type your file name and select the folder to save it in. If you want to automate ...


0

pdfgrep was written for exactly this purpose and is available in Ubuntu. It tries to be mostly compatible to grep and thus provides "the power of grep", only specialized for PDFs. That includes common grep options, such as --recursive, --ignore-case or --color. In contrast to pdftotext | grep, pdfgrep can output the page number of a match in a performant ...


3

With pdftk and GNU coreutils Determine the number of pages in the PDF file, then call shuf to generate a randomized list of page numbers, and call pdftk again to extract the given sequence of pages. pdftk original.pdf cat $(shuf 1-$(pdftk original.pdf dump_data | awk '$1=="NumberOfPages:" {print $2}')) output randomized.pdf With Python and PyPdf ...


1

We will use pdftk to perform operations on the pdf document. Create a temporary working directory: mkdir tmp Split the pdf document in many one page documents: pdftk original.pdf burst output tmp/pg_%02d.pdf Rename the one-page document with random names: for name in tmp/*.pdf; do mv "tmp/$name" tmp/$(echo "$name" | sha1sum | cut -f1 -d' ').pdf ...



Top 50 recent answers are included