Forum How do I...?

how do I troubleshoot unwanted results

damnsharp
Good morning,
I am new to PrinceXML but am very excited about the possibilities.

I have a basic question, how do I troubleshoot unwanted results?
Normally with CSS I use e.g. Chrome development tools (F12). But with PrinceXML specific print styles this is more difficult.

For example I now have a nice PDF but it has a white PDF first page. I have no clue why.

Thanks!
mikeday
This can get tricky, but I find the browser inspector tools are still helpful to quickly get an idea of the major styles and markup without digging through every style sheet in a text editor.

If your first page is blank, check if you have some invisible content at the start of the document before you apply any properties that force a page break, such as page-break-before/after or just the "page" property to set a named page.

Another possibility is you have specified some very large fixed heights on block elements.
damnsharp
Hi Mike!
Thanks a lot for the reply.

I will check heights and page-breaks, that is indeed most likely the cause of the problem.

The browser inspector tool is great for the normal CSS. It would be nice to have such an option for the Prince print CSS style. So that I first could see online the output.