Thommy7571 0 Posted March 16, 2023 Hello, After trying other pdf solutions, CHATGPT told me that there is a pdf library available which can be accessed from a Vcl library. The data type should be TPDFDocument:. I did not know where I should place this question. Since it seems to be part of VcL I ask here. I passed one day trying all suggestions given by ChatGPT (TPDFDocument, AcroPDFLib_tlb, ..). Nothing worked. Can anybody help me. I want to create a PDF document, add images and close it at the end. I only found commercial libraries with annual fees. Or is finally the claim right of ChatGPT, that I need to repair my Delphi-Installation? I just installed it and I don't believe ChatGPT concerning this. Thanks for any help. Thommy7571 PS: If the page is moved to another place please give me a message... Share this post Link to post
PaPaNi 23 Posted March 16, 2023 if you have FastReport then i would try to create a file with it. Share this post Link to post
FPiette 385 Posted March 16, 2023 Use PowerPdf : Install it using GetIT package manager directly from the IDE. Or visit https://github.com/TurboPack/PowerPDF. It is free. I do it for more than 10 years with great success. Share this post Link to post
Thommy7571 0 Posted March 17, 2023 Hallo, Thanks very much for this help. I have not yet much experience with such kind of using additional code. Could you give me a link to some examples and explain how to use the files? It is not a library as usual. Share this post Link to post
ULIK 16 Posted March 17, 2023 Hi, if you need to get a working solution, you have to use a third party solution for creating a PDF. Why not use SynPDF as suggested? Easy to use, they offer sample code (read their start page til the end!) and there is even a forum where you can ask. Share this post Link to post
omnibrain 15 Posted March 17, 2023 On 3/16/2023 at 2:17 PM, Thommy7571 said: ChatGPT ChatGPT does not answer with Facts but with the thing that is most likely going to be the answer. Sometimes that's actually a fact, sometimes it just makes stuff up. I had ChatGPT make up library names that sounded good, with method signatures that fitted the requirements, but they did not exist. When pressed ChatGPT even made up github repositories. This behaviour is more likely for Delphi than for example Javascript, because there was just not as much Delphi code in the training set. Share this post Link to post
Thommy7571 0 Posted March 18, 2023 I see, I remarked also this difference of Chat gPT in relation to the popularity of the programming languages. I already tried SynPDF? Can I add it as an additional program since it is no library? If there is a forum, I will ask there. Share this post Link to post
rvk 44 Posted March 18, 2023 3 hours ago, Thommy7571 said: I already tried SynPDF? Can I add it as an additional program since it is no library? SynPDF is part of the mORMot framework. But you can download it and use it as standalone library. See https://synopse.info/forum/viewtopic.php?id=25 Forum is here https://synopse.info/forum/viewforum.php?id=1 Github https://github.com/synopse/SynPDF Share this post Link to post