![]() ![]() I hope all of the comments make it clear what everything is doing 3. That’s a pain, but I wrote a little shell script that makes the whole process very easy. The problem was that you have to specify each title in instructions.txt every time. Our brand spanking new PDf to create, with corrected metadata. I’m letting PDFtk know that I want to write these changes to a new file. The file that contains the changes, with one line specifying the metadata key to change, & one line for the metadata value for that key. The task I want PDFtk to perform: updating, or changing, metadata for the specified PDF. Let me break down the components of this command: Here’s the rub: PDFtk expects you to do this for each PDF whose metadata you want to change: $ pdftk old-file-name.pdf update_info instructions.txt output new-file-name.pdf InfoValue: Acrobat Distiller 8.1.0 (Windows ) $ pdftk 1934 \ 0104 \ Old \ Magazine.pdf dump_data output report.txt Now let’s get that metadata out of an existing PDF so we can see it. It’s a PKG file, so just click on it, answer Continue, Continue, Install, & you now have PDFtk installed at /opt/pdflabs/pdftk. Start by downloading PDFtk for your Mac from it’s website. Uncompress and Re-Compress Page Streams.Attach Files to PDF Pages or the PDF Document.Report PDF Metrics, Bookmarks and Metadata.Apply a Background Watermark or a Foreground Stamp.Generate FDF Data Stencils from PDF Forms.Fill PDF Forms with X/FDF Data and/or Flatten Forms.Decrypt Input as Necessary (Password Required).Merge PDF Documents or Collate PDF Page Scans. ![]() This is a cross-platform command line app that describes itself as able to do all of the following: Finally, I discovered PDFtk, short for “The PDF Toolkit”. Why? Because I sure as heck wasn’t gonna do it one at a time 2.Īfter looking at several different methods, most of which made you change the Title one file at a time, which was useless. But not in just one PDF-in about 200 PDFs, and programmatically, from the command line. Aha! I needed to change the Title metadata in the PDF 1. I immediately noticed the Title field, which said Old Magazine November 10, 1934. I started by opening a PDF in Preview & selecting Tools > Show Inspector > General Info. I assumed that the file names I gave the PDFs would be the same as their Titles in Calibre. Out of the 48 or so PDFs I imported, one about five imported with the correct Titles. Unfortunately, the Titles listed in Calibre looked like this: Things looked great, so I imported the PDFs into Calibre, free & open source software that is basically an iTunes for ebooks. I’m particular about my file names, so I used A Better Finder Rename to fix them so they all looked like this: Recently I downloaded a large number of PDFs of an old magazine that I wanted to read.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |