Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
generating a pdf with an internal-img using nlapiXMLToPDF
hi
i'm trying to use nlapiXMLToPDF to generate my pdf file.
problem
if i used for img a http:\blablubbbpic.jpg it works
i need the company pic out of netsuite but these url contains &c... (see code 'imgurl')
and it occures an error while parsing:
Fehler beim Lesen von XML: The reference to entity "c" must end with the ';' delimiter.
code sample
var xml = '&lt;?xml version="1.0"?&gt;n&lt;!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd"&gt;n&lt;pdf&gt;n&lt;body width="101mm" height="38mm" margin="1" padding="1" font-size="6"&gt;n'; var <strong>imgurl </strong>= '<strong> 0