|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Adding a DateTime stamp to a PDF titlepageHi, We are currently generating PDFs using xsltproc, and are
building our PDF titlepages using an .svg image with the following code: <t:titlepage
t:element="book" t:wrapper="fo:block"> <t:titlepage-content
t:side="recto"> </t:titlepage-content> <t:titlepage-content
t:side="verso"> <legalnotice
font-size="10pt"/> </t:titlepage-content> <t:titlepage-separator> <!--<fo:block
break-after="page"/>--> </t:titlepage-separator> <t:titlepage-before
t:side="recto"> <!--<fo:block
break-after="page"/>--> <fo:block-container
absolute-position="absolute" height="100%" width="100%"> <fo:block
padding-top="10%"> <fo:external-graphic
src="url(All_Titlepages/KTM/CoverPage_InstallationGuide_KTM.svg)"/> </fo:block> </fo:block-container> </t:titlepage-before> <t:titlepage-before
t:side="verso"> <fo:block
break-before="page"/> <!--<fo:block
break-after="page"/>--> </t:titlepage-before> </t:titlepage> We have been asked to include a date and time stamp on each
pdf title page in addition to the graphic file. I’ve been able to get generic text placed in the
correct location on the title page by adding the following entry directly after
the external-graphic block: <fo:block text-align="right"
margin-right="-10px" font-family="{$title.fontset}"
font-size="8pt">Date/Time Stamp to go here</fo:block>
Does anybody know if I can insert the date and time in that
location? If so, could you provide or point me to an example? Thanks in advance,
This communication is only for the use of the intended recipient. It may contain confidential or proprietary information. If you are not the intended recipient or have received this communication in error, please notify the sender via phone and destroy this communication immediately. |
||||||||||
|
|
Re: Adding a DateTime stamp to a PDF titlepageOn 24/09/09 12:56, Laurie Burley wrote:
> Hi, > > We are currently generating PDFs using xsltproc, and are building our > PDF titlepages using an .svg image with the following code: > We have been asked to include a date and time stamp on each pdf title > page in addition to the graphic file. > > I’ve been able to get generic text placed in the correct location on the > title page by adding the following entry directly after the > external-graphic block: > I’ve seen several examples using JavaScript but they tend to require > either the Saxon or Xalan processors, which we are not using. > > Does anybody know if I can insert the date and time in that location? If > so, could you provide or point me to an example? Using xslt 2.0 it is easier, but with XSLT 1.0, easiest to pass the date time, formatted as you want it, as a parameter to the stylesheet, and use that value. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
||||||||||
|
|
Re: Adding a DateTime stamp to a PDF titlepageLaurie Burley wrote:
> We have been asked to include a date and time stamp on each pdf title page in addition to the graphic file. Just add something like <pubdate><?dbtimestamp?></pubdate> inside your <info> element and then make sure that titlepage customization place this info in the right place. See http://docbook.sourceforge.net/release/xsl/current/doc/pi/dbtimestamp.html -- ------------------------------------------------------------------ Jirka Kosek e-mail: jirka@... http://xmlguru.cz ------------------------------------------------------------------ Professional XML consulting and training services DocBook customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member ------------------------------------------------------------------ |
||||||||||
|
|
Re: Adding a DateTime stamp to a PDF titlepageHi,
The "Date and time" topic linked to from the dbtimestamp reference page seems to be broken. For details on the "format" string, see: http://www.sagehill.net/docbookxsl/Datetime.html Bob Stayton Sagehill Enterprises bobs@... ----- Original Message ----- From: "Jirka Kosek" <jirka@...> To: "Laurie Burley" <laurie.burley@...> Cc: <docbook-apps@...> Sent: Thursday, September 24, 2009 6:19 AM Subject: Re: [docbook-apps] Adding a DateTime stamp to a PDF titlepage Laurie Burley wrote: > We have been asked to include a date and time stamp on each pdf title page > in addition to the graphic file. Just add something like <pubdate><?dbtimestamp?></pubdate> inside your <info> element and then make sure that titlepage customization place this info in the right place. See http://docbook.sourceforge.net/release/xsl/current/doc/pi/dbtimestamp.html --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@... For additional commands, e-mail: docbook-apps-help@... |
||||||||||
| Free embeddable forum powered by Nabble | Forum Help |