61
Views
5
Comments
How to generate pdf file using the input text in the Reactive Application?
Application Type
Reactive

Hi,

I have a text which I want to convert to pdf. I am using the TextToBinaryData server action from BinaryData extension. But when the pdf is downloaded and I try to open it, it gives "Failed to open document" error.

  • I cannot use javascript as I want to run this logic in API.
  • I have found some forge components to generate pdf but they use javascript.
  • Also I can't create url of text as some forge components need url to be passed as an input.

Any suggestion would be helpful.

Thank you!

2022-01-13 11-06-04
Neha Sheikh
Champion

Hello,


Can you pls share OML. That will provide the scenario so that we try to solve your issue.

Thanks,

Neha

UserImage.jpg
Ibtesam Shaikh

Ok, will share.

UserImage.jpg
Ibtesam Shaikh


The HTML String has value like Hello {{name}}!
The value for name is coming from API.
The replacement of {{name}} to actual value is done, now I want to convert this text to PDF.
This logic is in an exposed API so javascript cannot be used here.

2024-03-22 09-17-23
Chandra Vikas Sharma

Hi ,

you can use ultimate pdf for achieve your goal. it generate PDF as per  your requirement.

   https://www.outsystems.com/forge/component-discussions/5641/ultimate-pdf-o11

Thanks

CV


UserImage.jpg
Ibtesam Shaikh

Ultimate pdf requires url to be passed as an input and my input is Text.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.