Main

August 16, 2010

Add linked images to PDFs

While working on an internal project, we developed "pdfstamp", a command-line tool that allows one to easily apply linked images to PDFs. We thought some in our community might find it useful and have released it on github.

Some more PDF-related tools will follow soon.

August 3, 2010

XMP in RSC PDFs

Just a quick heads-up to say that we've had a go at incorporating InChIs and ontology terms into our PDFs with XMP. There isn't a lot of room in an XMP packet so we've had to be a bit particular about what we include.

  • InChIs: the bigger the molecule the longer the InChI, so we've standardized on the fixed-length InChIKey. This doesn't mean anything on its own, so we've gone the Semantic Web route of including an InChI resolver HTTP URI. Alternatively you can extract the InChIKeys with a regular expression.
  • Ontology terms: we're using HTTP URIs again and pointing to either Open Biomedical Ontology URIs (biology, biomedicine; slashy) or RSC ontology terms (chemistry; hashy). Often the OBO URIs resolve to a specific web page, but for the moment the RSC URIs just point to a large OWL file. Slashy URIs are quite a bit more involved so we'll have to see what the demand is like.

There's only about 4K to play with, so it's only ever going to be a best-of. More detailed article metadata has to go in either a sidecar file, as Tony has pointed out before, or ideally on the article landing page. The example files are here and I've posted something with a different slant on the RSC technical blog.

December 9, 2009

Add CrossRef metadata to PDFs using XMP

In order to encourage publishers and other content producers to embed metadata into their PDFs, we have released an experimental tool called "pdfmark", This open source tool allows you to add XMP metadata to a PDF. What's really cool, is that if you give the tool a CrossRef DOI, it will lookup the metadata in CrossRef and then apply said metadata to the PDF. More detail can be found on the pdfmark page on the CrossRef Labs site. The usual weasels words and excuses about "experiments" apply.

July 3, 2008

ISO Standard for PDF

I blogged here back in Jan. 2007 about Adobe submitting PDF 1.7 for standardization by ISO. From yesterday's ISO press release this:

"The new standard, ISO 32000-1, Document management – Portable document format – Part 1: PDF 1.7, is based on the PDF version 1.7 developed by Adobe. This International Standard supplies the essential information needed by developers of software that create PDF files (conforming writers), software that reads existing PDF files and interprets their contents for display and interaction (conforming readers), and PDF products that read and/or write PDF files for a variety of other purposes (conforming products)."
Congrats to Adobe Systems!

October 8, 2007

Mars Bar

Just noticed that there is now (as of last month) a blog for Mars ("Mars: Comments on PDF, Acrobat, XML, and the Mars file format"). See this from the initial post:

"The Mars Project at Adobe is aimed at creating an XML representation for PDF documents. We use a component-based model for representing different aspects of the document and we use the Universal Container Format (a Zip-based packaging format) to hold the pieces. Mars uses XML to represent the individual components where that makes sense, but otherwise uses industry standard formats to represent other components. Examples of these include Fonts (we use OpenType), Images (PNG, GIF, JPEG, JPEG2000), Color (ICC Color Profiles), etc.. We use SVG to represent page content, which fits as both an XML format and an industry standard."

August 23, 2007

pdfa.org

Following on from yesterday's post I just came across this very useful source of information on PDF/A: the PDF/A Conformance Center. This provides links to resources such as this whitepaper PDF/A - A new Standard for Long-Term Archiving, and a number of technical notes, especially Metadata and PDF/A-1(also available as a PDF). (This latter corrects some errors in the ISO standard which are to be redressed in a forthcoming Technical Corrigendum later this year.)

The site also links to the standard, to a FAQ, to PDF/A products and to news and events. There's also an RSS feed and a discussion forum.

Still difficult to find examples of PDF/A though (the discussion forum doesn't throw up too much on that score) although at least the Technical Note linked to above is a PDF/A-1 document as can be seen from this XMP description:

      <rdf:Description rdf:about=""
            xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/">
         <pdfaid:part>1</pdfaid:part>
         <pdfaid:conformance>A</pdfaid:conformance>
      </rdf:Description>
 

As noted before, PDF/A may be more (and less) than CrossRef publishers require at this time, but nonetheless it is certainly a useful yardstick as regards embedding metadata within a PDF and is anyway a technology worth tracking in its own right.