pdf output with dynamic filename
Posted: Thu Dec 11, 2014 6:02 pm
Hi,
my current pdf transformation uses simply "${cfn}.pdf" as configured output file. However, I'd like to add the document version (coming from a specific element inside the document) to the filename. And for my diff it should be something like "${BookName}-Diff-v${NewerVersion}-to-${OlderVersion}.pdf".
I already implemented this for my pure xml transformation where I can use xsl:result-document and calculate the value fo @href inside the xslt. Is there any way to do the same when using the (apache-)fop?
Thanks and regards,
Patrik
my current pdf transformation uses simply "${cfn}.pdf" as configured output file. However, I'd like to add the document version (coming from a specific element inside the document) to the filename. And for my diff it should be something like "${BookName}-Diff-v${NewerVersion}-to-${OlderVersion}.pdf".
I already implemented this for my pure xml transformation where I can use xsl:result-document and calculate the value fo @href inside the xslt. Is there any way to do the same when using the (apache-)fop?
Thanks and regards,
Patrik