Commit e77d51fd authored by Julie Blanc's avatar Julie Blanc

add questions to FAQ

parent dadcb20b
......@@ -12,7 +12,6 @@ Unfortunately Chromium/Chrome doesn’t understand css-properties when printing.
Paged.js fragments all the content of your document, which means it will take the `<body>` tag from your document and transform your content into pages.
* Each `<section>` tag is preceded by a default page break,
* If an image don't have the place to fit in a page, it's push in the next page.
---
......@@ -21,4 +20,20 @@ Paged.js fragments all the content of your document, which means it will take th
Blink (Chromium/Chrome rendering engine) doesn’t support mixed orientation or mixed size when it comes to print, so you can only set one orientation and one size per file (generated PDF).
The way that paged.js support landscape and portrait let you preview on screen, but when it comes to print, you would need to print two different files and merge those. We're looking at options for postprocessing PDF (using Ghostscript) to handle this kind of tasks automatically, but it's not there yet.
\ No newline at end of file
The way that paged.js support landscape and portrait let you preview on screen, but when it comes to print, you would need to print two different files and merge those. We're looking at options for postprocessing PDF (using Ghostscript) to handle this kind of tasks automatically, but it's not there yet.
---
**Infinite loop in rendering**
If paged.js makes an infinite loop when rendering (generating empty pages or pages with the same content), it's probably because it can't fit an inline element into the page size you defined
Paged.js checks the overflow only horizontally in the page. If you have elements that are larger than the page vertically, you may have rendering problems because paged.js can't get the element into the page. (For the vertical writing direction, it will be the opposite)
This often happens with `<pre>` or `<table>` (`<tr>`, `<th>`) elements. You need to add line breaks, which are possible with css (https://developer.mozilla.org/en-US/docs/Web/CSS/white-space)
---
**Styling div and section elements**
Paged.js modifies the DOM structure by adding some HTML elements to build and render your layout. It adds a lot of `div ` elements. When you make your style sheet, we don't recommend that you call `div` and `section` tag names to apply your styles. You may get an unexpected rendering because your styles will apply to unwanted elements. Instead, use custom class to select the items you want.
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment