On Sep 28, 2014, at 10:23, Henrik Bøgh wrote:

> After getting some help to find the documentation for exporting templates, 
> I'm still struggeling a bit with reaching my intended goal for a template.
> 
> Ideally I would like a way to include the information contained in a 
> PDF-file's 'author'-field, secondary I would like to include the filename.
> 
> With inspiration from 
> https://github.com/bewildergeist/skim-app-templates/blob/master/Notes%20as%20HTML.html
>  I was aiming at <$fileName.lastPathComponent/> for getting the file-name, 
> for APA (specific parts, see 
> https://www.library.cornell.edu/research/citation/apa ) citation styles 
> (files named 'Author, year.pdf'):
> 
> {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf210
> \cocoascreenfonts1{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
> {\colortbl;\red255\green255\blue255;}
> \paperw12240\paperh15840\vieww21960\viewh8400\viewkind0
> \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
> 
> \f0\fs24 \cf0 <$notes.@arraySortedByPageIndexAndBounds>\
> <$string?>\'94<$string/>\'94</$string?><$text?> - \'94<$text/>\'94</$text?> 
> (<$fileName.lastPathComponent/>, PDF p. 
> <$page.label?><$page.label/><?$page.label?><$pageIndex.numberByAddingOne/></$page.label?>)\
> \
> </$notes.@arraySortedByPageIndexAndBounds>\
> \
> }
> 
> This does not seem to be getting me closer to target. Ideally the 
> <$fileName.lastPathComponent/> would be replaced with something like 
> <$document.author/>, but I have no idea on where to see the properties for 
> the document (or the fileName) tags for that matter?
> 
> Any pointers?
> 
> In kind regards,
> Henrik


You can use <$documentAttributes.Author/>. But it's a property of the document, 
so it won't work inside a <$notes> tag. For a note you could use 
<$page.document.documentAttributes.Author/> or 
<$page.containingDocument.documentAttributes.Author/>

Christiaan

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Skim-app-users mailing list
Skim-app-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to