PdfBundle icon indicating copy to clipboard operation
PdfBundle copied to clipboard

Error blank space character not defined

Open prakashsinghgaur opened this issue 9 years ago • 1 comments

I have a field in which users will enter full html text and a pdf should be generated.

But when I enter a blank space using some text editor which is   the following error comes:-

Xml parsing error "Entity 'nbsp' not defined So, how this   character can be defined in xmlParser.

I guess there might be more html entities like this one which are not identified by the xmlParser.

Thanks

prakashsinghgaur avatar Sep 13 '16 11:09 prakashsinghgaur

specifying doctype in the pdf twig template resolved the issue:-

<!DOCTYPE pdf SYSTEM "%resources%/dtd/doctype.dtd">

prakashsinghgaur avatar Jun 17 '17 03:06 prakashsinghgaur