tag:help-archives.hannonhill.com,2010-02-09:/discussions/general/190-error-on-rendering-pdf-in-the-cmsCascade CMS: Discussion 2018-10-18T20:36:08Ztag:help-archives.hannonhill.com,2010-02-09:Comment/40205852010-11-29T17:01:28Z2010-11-29T17:02:38Zerror on rendering pdf in the cms<div><p>That looks to me that the xhtml2fo2pdf format is encountering an
HTML <code><ul></code> or <code><ol></code> element
that doesn't have any <code><li></code> children. It
unwittingly generates the <code><fo:list-block></code>
element from the unordered or ordered list element, but then no
<code><fo:list-item></code> elements get generated, causing
the error.</p>
<p>Let us know if you can't find any content with missing list
items.</p></div>Rosstag:help-archives.hannonhill.com,2010-02-09:Comment/40205852010-11-29T19:01:07Z2010-11-29T19:01:27Zerror on rendering pdf in the cms<div><h1>Thanks Ross. There was a</h1>
<ul>
<li style="list-style: none">tag without</li>
<li>. Now I get this error:
<p>Nov 29, 2010 1:57 PM<br>
An error occurred: An error occurred while rendering the PDF:
org.apache.fop.fo.ValidationException: null:59:32: Error(59/32):
fo:inline is not a valid child element of fo:list-block.</p>
<p>You may choose to retry the operation. If the problem persists,
please contact a system administrator.</p>
<p>The error has been logged to the system console.</p>
<h1>Home</h1>
<p>What does this mean?</p>
</li>
</ul></div>csaladorestag:help-archives.hannonhill.com,2010-02-09:Comment/40205852010-11-29T19:09:34Z2010-11-29T19:09:34Zerror on rendering pdf in the cms<div><p>Sounds like there is another list that has a (direct) child
other than</p>
<ul>
<li>.<br>
HTML elements like <b>, <strong>, <i>, <em>, <code>, <big>,
<small>, <span>,<br>
etc. all generate <fo:inline> elements. They're allowed
INSIDE of</span></small></big></code></em></i></strong></b></li>
<li><b><strong><i><em><code><big><small><span><br>
elements but not directly
under</span></small></big></code></em></i></strong></b></li>
</ul>
<div style="margin-left: 4em">
<b><strong><i><em><code><big><small><span><br>
<br></span></small></big></code></em></i></strong></b>
<p><b><strong><i><em><code><big><small><span>On Mon, Nov 29, 2010
at 2:01 PM, csaladores <<br>
<a href=
"mailto:tender+d22815ea0d944042fc747853237ca637705ffd285@tenderapp.com">
tender+d22815ea0d944042fc747853237ca637705ffd285@tenderapp.com</a><<a href="mailto:tender%2Bd22815ea0d944042fc747853237ca637705ffd285@tenderapp.com">tender%2Bd22815ea0d944042fc747853237ca637705ffd285@tenderapp.com</a>><br></span></small></big></code></em></i></strong></b></p>
<blockquote>
<p>wrote:</p>
</blockquote>
</div></div>Rosstag:help-archives.hannonhill.com,2010-02-09:Comment/40205852010-11-29T19:35:10Z2010-11-29T19:36:29Zerror on rendering pdf in the cms<div><p>Yup, i removed any tag other than</p>
<ul>
<li>in the</li>
</ul>
<div style="margin-left: 2em">tag. When I removed that, it gave me
this error:
<p>======================= Nov 29, 2010 2:34 PM<br>
An error occurred: An error occurred while rendering the PDF: Gap
in the kids list!</p>
<p>You may choose to retry the operation. If the problem persists,
please contact a system administrator.</p>
<p>The error has been logged to the system console.</p>
<h1>Home</h1>
<p>I'm not sure what this means.</p>
</div></div>csaladorestag:help-archives.hannonhill.com,2010-02-09:Comment/40205852010-11-29T19:48:14Z2010-11-29T19:49:18Zerror on rendering pdf in the cms<div><p>Basically what <code>Gap in the kids list</code> means is that
one of the pages of the PDF failed to render properly. This can be
caused by any number of issues in the HTML to PDF conversion; the
error message is frustratingly vague.</p>
<p>I'd recommend that you first check the <code>cascade.log</code>
file in the server's <code>log</code> directory to see if there are
any other PDF-related errors. If you're only encountering this on
one Page asset, then the problem is likely with the WYSIWYG content
of that page. If it is occurring on all pages, we may need to take
a different tack.</p>
<p>If you're seeing the problem just on one (or a few) pages, paste
the WYSIWYG content of the page into a very basic HTML template
like the following, and validate that content at <a href=
"http://validator.w3.org/#validate_by_input">http://validator.w3.org</a></p>
<pre>
<code><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Content Test</title>
</head>
<body>
Put your WYSIWYG content here.
</body>
</html></code>
</pre></div>Rosstag:help-archives.hannonhill.com,2010-02-09:Comment/40205852010-11-29T20:48:07Z2010-11-29T20:48:07Zerror on rendering pdf in the cms<div><p>Great, thanks Ross for the tip. It's just one page asset. It may
have to do with the WYSIWYG content. I'll use the validator to
validate content for the pdf. Thanks again.</p></div>csaladores