Re: [xep-support] modify the origin coordinates

From: Alexei Gagarinov <agagarinov@renderx.com>
Date: Wed Mar 14 2007 - 14:17:24 PST

Hi Christian,

> Can I find the origin coordinates in the
> PDF (PDF-1.4) in some human readable form?

The media box defines the boundaries of the physical medium.
The first two numbers in /MediaBox dictionary are origin of
coordinates. The latter two are width and height respectively.
All these numbers are in points and, in my opinion, in human readable
form (5mm = 72pt/25.4mm * 5mm = 14.173pt)

> The company that is printing the PDFs is complaining about that the origin
> coordinates seem to be set wrong in those PDFs resulting in the whole
> document being shifted vertically when it is printed.

The document is shifted while printing because you changed the
width/height ratio.
Setting bleed offsets that correspond to width/height ratio will
prevent shifting.

It should look like this in your case:
<?xep-pdf-crop-offset 7.84mm 5mm?>
<?xep-pdf-bleed 7.84mm 5mm?>

Regards,
  Alexei Gagarinov
RenderX

---
www.renderx.net
> Hallo,
> I create PDF files out of XSL-FOdata (generated out of an XSL file) with
> XEP. Some of the PDF files need to have a "Bleed addition" (I don't know the
> exact term in english).
> Thus in the XSL we set two processing instructions:
> <xsl:processing-instruction name="xep-pdf-crop-offset"><xsl:value-of
> select="$Page.Overflow"/></xsl:processing-instruction>
> <xsl:processing-instruction name="xep-pdf-bleed"><xsl:value-of
> select="$Page.Overflow"/></xsl:processing-instruction>
> The value of Page.Overflow is set to 5mm.
> The company that is printing the PDFs is complaining about that the origin
> coordinates seem to be set wrong in those PDFs resulting in the whole
> document being shifted vertically when it is printed. They can manually
> adjust this, but the whole production process is usually standarized because
> they handle hundreds or thousands of PDFs each day.
> In the resulting PDF, the boxes are defined as follows:
> /MediaBox [-14.173 -14.173 991.587 637.795]
> /CropBox [-14.173 -14.173 991.587 637.795]
> /BleedBox [-14.173 -14.173 991.587 637.795]
> /TrimBox [0 0 977.414 623.622]
> Does anybody know whether the processing instructions are wrong, or what
> else can cause such a behaviour? Can I find the origin coordinates in the
> PDF (PDF-1.4) in some human readable form?
> Any help would be greatly appreciated.
> Best regards,
> Christian Kirchhoff
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of
> Service http://www.renderx.com/terms-of-service.html
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Mar 14 14:50:14 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 14 2007 - 14:50:15 PST