Hi, I am having some trouble choosing the correct method for the case of editing and previewing a PDF document. I have a file object class with a string attribute “HTML body”. This HTML content is edited using a text editor/coded component. On Save click I want use the regenerate the PDF file and preview it with changes.
The problem I am having is that generate file generates a new file object. My expectation was that it would update the file content only.
Due to this I was wondering how handeling file edititing should be handled? Is it recomended to have 2 object classes. One file and one regular where the regular contains the information and the file object class is regenerated each edit. Or is it fine to have one file class with all attributes and making sure that both attributes and file content on the new file object is updated with the old one.
I am assuming that i need to delete the old file object each edit, is that correct?
Lastly, if it is technically possible to have a toggle on “Genereate PDF-file” that says “replace object” similar to the regular object class. That would make file editing more similar to the regular object class editing and would have saved me some confusion in this case