Fold marks for print formats


I’m trying to find a way to put fold marks on print formats. Is this something that can be done already?

I tried putting them in the letter head, absolutely positioned. However wkhtmltopdf renders the header as opaque and extends it to the position of the fold mark (e.g. a div containing an image), thus covering the document’s body.

If you have any suggestions, I’d be pleased to hear them.


1 Like

Can you share what you have done and what is the current output?

After further investigation I have concluded the following things:

  1. The current stable wkhtmltopdf version is NOT capable of rendering transparent headers/footers. A build from current master fixes this issue.

I have compiled a trusty deb package here: Dropbox - File Deleted

Install with dpkg --force-all -i …

  1. The fold marks can then be inserted into a letter head as such:


<div style=“position: absolute; left: 0; top: 105mm; width: 15px; height: 1px; background-color: black !important;”



This gives a result like this:

What is left to do now, is to move those fold marks further to the edge of the document. I reckon I’d have to play around with the set margins to avoid clipping of elements outside the ‘document box’. :slight_smile:



‘’ reveals the secret:

  1. Add (hidden) Element in template to remove pdf margin like so:
    <div id="margin-left" style="display: none;">0mm</div>

  2. Wrap template in div with padding-left: 15mm;

This gives such a result:

The rest is somewhat trivial. :smiley: