Export Notepad into PDF

Hello!

I’m working on creating notepads independently, but I’m stuck on a question.

Is it possible to automatically export a notepad as a PDF using a workflow or something similar and save it to a media set or folder, but automatically, without user intervention?

Hi Mateo,

I found a workaround for a similar use case, which might be useful for you:

https://community.palantir.com/t/use-notepad-to-generate-pdf-and-save-in-foundry/4045/2?u=jakehop

You can then use the code snippets from here to push the returned output to a dataset or a mediaset: https://palantir.com/docs/foundry/transforms-python/unstructured-files/

Hello Jake, how’s it going? Thanks for your reply.

I was doing some test to the endpoint that you share in the attached post, but when I’m doing the request to the “https://-----/resource-renderer/api/notepad/-----/render-async”, it returns a 404 not found.

Could you guide me to do this?

Thnaks!

You’re welcome!

Apologies, I should probably have made it a bit clearer.

Just to check;

  • the dashes you’ve added in the URL are just to obfuscate your hostname and the rid of your notepad document, right?
  • you’ve sent the post request, with the notepadRid, and that’s where you get a 404?
  • or are you getting the 404 when you try to get the PDF from the stream endpoint?