Custom CSS recipes for PDF templates

PDF Templates in ScreenSteps are created with HTML, CSS, and Javascript and then processed using the Prince PDF engine. This means you can customize how things look by adding your own CSS. This article contains CSS examples that you can use in the Custom CSS tab of the PDF Template editor in the ScreenSteps admin area to change the appearance of your PDF output.

Where should I put the CSS in these recipes?

Custom CSS is added to the Custom CSS tab of a PDF Template. Just copy and paste a recipe from this page into the Custom CSS field and click the Update button.

Recipes in this article

Set the maximum height for images

By default images in a PDF document can be up to 4 inches tall. This CSS will change the max-height for the image to 3 inches.

#content .image img

Change the maximum image size of the title page logo

By default the title page logo has a top margin of 80pt and a maximum height of 100px. Here is an example that changes the top margin to 0pt and 400 pixels.

#title-page-logo-image

Target the title page