We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

PDF generation in CPM

Accepted answer
edited Feb 18, 2018 4:27AM in Customer Portal 25 comments


Hi folks,

I am trying to generated PDF using CPM. I know we can go with Addins which is little easier compared to CPMs, but I cant due to various other reasons.

I am trying with these two libraries:

  • tcpdf
  • fpdf

tcpdf has the format I want, which takes in html as a parameter and converts to PDF.

But the problem is, no file operations are allowed in CPM no file_get_contentst(), file_read, file_write() etc.


  • How do we get them working?
  • Can I call a custom script and generate them from CPM?


Pramod V

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!