Page 1 of 1
Trim and registration marks
Posted: Mon Aug 21, 2006 4:29 pm
by amjb71
I have been looking in to getting trim and registration marks on my PDF, with not much success i.e
<?xep-pdf-crop-offset 10mm?>
<?xep-pdf-crop-mark-width 0.2mm?>
<?xep-pdf-bleed 2mm?>
<?xep-pdf-bleed-mark-width 0.2mm?>
<?xep-pdf-pdf-x Sets PDX/X-3?>
But nothing is shown apart from the 10mm border? can anyone help oe point me to a working example?
Many thanks
Posted: Mon Aug 21, 2006 6:10 pm
by sorin_ristache
Hello,
The transformation pipeline must include a XEP specific step: add the XEP processing instructions to the XSL-FO file and apply XEP on the result XSL-FO to get the final PDF result with registration marks. In oXygen you can create an external tool in Options -> Preferences -> XML -> XSLT/FO/XQuery -> FO Processors and use it in the transformation scenario as the FO processor. You have to insert the processing instructions with the stylesheet which performs the XML -> XSL-FO step so that the complete XML -> PDF transformation is done in with a single user action (in the same transformation scenario).
Regards,
Sorin
Lost, sorry
Posted: Mon Aug 21, 2006 8:39 pm
by amjb71
Hi and thanks for the reply, but I am new to this and a little lost with the instructions, I have my working XML to PDF working with XEP, so to add registration marks I need a external tool, is this added to the XEP.xml file? and then on my XSL file?
Sorry if I am getting this wrong, and thanks for any help.
Posted: Tue Aug 22, 2006 10:43 am
by sorin_ristache
Hello,
If you have the scenario already set for transformation from XML to PDF using XEP then you just need to modify the XSLT stylesheet which generates the XSL-FO file so that the XSL-FO file contains your processing instructions (xep-pdf-crop-offset, xep-pdf-crop-mark-width, etc) specific for XEP.
Regards,
Sorin
Posted: Wed Aug 23, 2006 11:26 am
by amjb71
Hi, and thanks again,
I use this at the top of my .fo page:
<?xml version="1.0" encoding="utf-8"?>
<?xep-pdf-crop-offset 10mm?>
<?xep-pdf-crop-mark-width 0.2mm?>
<?xep-pdf-bleed 2mm?>
<?xep-pdf-bleed-mark-width 0.2mm?>
<fo:root xmlns:fo="
http://www.w3.org/1999/XSL/Format" xmlns:rx="
http://www.renderx.com/XSL/Extensions" xml:lang="en">
My PDF looks fine, but no crop marks, and acrobat 7 has an error:
An unrecognized token 'Page' was found
Any idea what I am doing wrong?
Posted: Wed Aug 23, 2006 12:22 pm
by sorin_ristache
Hello,
I added your XEP processing instructions to the XSL-FO file corresponding to a small sample Docbook XML file and the crop marks were added to the PDF result generated by XEP. Also I got no error when Acrobar Reader opened it. You can check to see if adding the processing instructions to the XSL-FO file generated for [oXygen-install-folder]/samples/docbook/sample.xml produces the desired effects in the PDF result. If the result is OK then I think XEP has a problem when processing your file and the XEP team can
provide more help.
Regards,
Sorin
Think I have found a problem
Posted: Wed Aug 23, 2006 1:38 pm
by amjb71
Hi Again,
Well I put XEP on my PC and it all worked just fine, no problems with errors and crop and bleed marks were there, so there may be a problem with XEP on OSX 10.4.7?
Not sure who to tell?
Posted: Wed Aug 23, 2006 2:20 pm
by amjb71
Right found out what it was if its of help to anyone in the future, it was me being stupid, I had this in my XEP.xml file
<option name="ENABLE_ACCESSIBILITY" value="True"/>
for web only PDFs
Again thanks Sorin for all your help!!