[Client-side HTML to PDF] getting pdfCreator is not defined error while using ClientSideHtmltoPdf

Forge Component
(1)
Published on 2019-09-19 by Kilian Hekhuis
1 vote
Published on 2019-09-19 by Kilian Hekhuis

Hi, 

I am trying to download html page as a pdf, for that I am using ClientSideHtmltoPdf. Getting pdfCreator is not defined error while using  ClientSideHtmltoPdf.

Neha Bhosale wrote:

Hi, 

I am trying to download html page as a pdf, for that I am using ClientSideHtmltoPdf. Getting pdfCreator is not defined error while using  ClientSideHtmltoPdf.

Hello, 

Did you generate the app after installing that component? 


Hi Neha,

Appologies for the late reply. That error indicates that you didn't include the PdfGenerator Web Block on the Screen you call GeneratePdf.

Hi Kilian,

thank for your answer, but how do I get the PdfGenerator Web Block on the screen ? Pulling is not possible.

Tobias

Hi Kilian,

I am now one step further. I've done the PdfGenerator Web Block on the Screen you call GeneratePdf.

But i get a new error "Can't read property 'r' is undefined"

Could you help ?

Thanks.

Tobias.


Mmm, I've never seen that error. Did you try the escape that comes with the component? Does it work for you?

Hi Kilian,

sorry for the late reply, but my environment was in maintenance. Yes your example that comes with the component works fine.

I have four blocks, which are made dynamically visible via an expression (standard procedure for the Wizard widget). Only in the last block the error does not come and a PDF download is possible. The other blocks contain a form widget, ligtbox-widget and so on.  Maybe it has something to do with it ..

Tobias


an addition. I have installed an input widget in the example, there is the same error.

Tobias

Hi Tobias,

Can you post the OML of the example with the input widget here, so I can check what is going on?

Hi Kilian,

with pleasure. Thank you very much for your efforts.

Tobias

Hi Tobias,

Apologies for not getting back sooner. I have identified the problem (I think), but I cannot publish a new version because I'm having some problems with my PE. As soon as that's sorted out I'll publish a new version of the component.

Hi Kilian,

Great. I'm looking forward to it. I have now tested the other plugins. But they were all too complicated and i couldn't get them to work properly.

Especially now I wish you and your family a lot of health. 

Tobias