-
I'm trying to generate an interior PDF file for a print-on-demand service (Lulu). Do you have recommendations on how to interact with PrinceXML PDF settings? I need to be able to reset the page size to 6"x9" and possible adjust the margins. I'm not sure if there are CSS styles I should add to Any advice? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @chrisdaaz. In the // Print/PDF stylesheet
// -----------------------------------------------------------------------------
$print-width: 8.5in;
$print-height: 11in;
$print-bleed: .125in;
$print-base-font-size: 8.5pt;
$print-text-color: $black;
$print-splash-color: $off-white;
$print-entry-image-color: $rich-black;
$print-entry-caption-color: $white;
$print-entry-image-display: all; // first | all You'll find even more at the top of the There are though a couple gothcas here that we still need to fix, and that you should be aware of: First, in Second, we have some well-intentioned but ultimately flawed logic built in that can also lead to unexpected results as some margins are automatically adjusted if the print width is less than or equal to 7" and again if it’s less than or equal to 10". @if $print-width <= 7 {
$print-inner-margin: $print-width - $print-base-text-column-width - $print-outer-margin;
}
@if $print-height <= 10 {
$print-top-margin: 0.5in;
} |
Beta Was this translation helpful? Give feedback.
Hi @chrisdaaz. In the
source/css/variable.scss
file of your project's theme, there are a number of print/pdf-related variables exposed there including for the page width and height.You'll find even more at the top of the
source/css/print.scss
file. Everything you need for adjusting the file to your liking for …