Copy link to clipboard
Copied
Hi Team, I need to create pdf from dynamic html.
So I have HTML file, inline CSS and json data.
How I can use new rest API's to create PDF.
I tried following steps -
1.Create a zip file from html, css and json file.
2.Generate access token.
2.Upload them to adobe cloud and get asset ID.
3.Call api- https://pdf-services-ue1.adobe.io/operation/htmltopdf
but it's not working.
Can any one help me on this? As new rest api documentation is not clear
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I tried your code and modified it with my client id and secret. I modified the source zip as well. It worked just fine.
Copy link to clipboard
Copied
Hi Raymond, it's blocking us in PROD environment. can you please help?
Copy link to clipboard
Copied
I'm working with someone else who sent me some sample HTML, but no data. If you can quickly send me a MINIMAL example that includes the HTML + all assets, ie, the zip, and your data, I will try to reproduce.
Copy link to clipboard
Copied
Query, the other person's HTML is missing this:
<script src='./json.js' type='text/javascript'></script>
Can you confirm if your templates have this?
Copy link to clipboard
Copied
Also, I'm assuming you have the same issue as the other thread. Looking at your original post, you only said:
"but it's not working."
Can you describe HOW it is not working?