mvanrijnen 123 Posted March 24, 2023 So, a topic which returns now and then 🙂  Printing existing PDF Files. There are some options using cmdline tools/applications, adobe activex etc etc, But with al those options i have not enought control over how to print an existing pdf. like: * Which printer * Which bin of that printer etc. etc.   Anybody a tip for a final solution? I prefer something which is 100% incorperated in the software itself (delphi vcl application).  Share this post Link to post
stijnsanders 37 Posted March 25, 2023 Just thinking out loud here: could you build SumatraPDF into a DLL you could call from Delphi code? Share this post Link to post
Vandrovnik 215 Posted March 25, 2023 FastReport should be able to print PDF (I did not try it): https://www.fast-report.com/en/blog/show/pdf-document-in-report-vcl/ Share this post Link to post
programmerdelphi2k 237 Posted March 25, 2023 5 hours ago, stijnsanders said: into a DLL you could call from Delphi code? you try create TLB from DLL file, then you can it as a procedure Delphi... IDE - Components... Import Components....etc... see help! in command-line: TLibImp.exe (32 and 64bits versions in ..\bin and ...\bin64 folders) with param -P to create Pascal files. Share this post Link to post
mvanrijnen 123 Posted March 27, 2023 (edited) On 3/25/2023 at 8:03 PM, Vandrovnik said: FastReport should be able to print PDF (I did not try it): https://www.fast-report.com/en/blog/show/pdf-document-in-report-vcl/ No i already have a PDF (generated with ReportBuilder), printing to PDF we already can. Now i have to print a already generated .pdf (at a later stage). gonna take a look into the sumatra pdf. I see it has a lot of printing options etc.  Edited March 27, 2023 by mvanrijnen Share this post Link to post
Vandrovnik 215 Posted March 27, 2023 15 minutes ago, mvanrijnen said: No i already have a PDF (generated with ReportBuilder), printing to PDF we already can. Now i have to print a already generated .pdf (at a later stage). gonna take a look into the sumatra pdf. I see it has a lot of printing options etc.  I understood - Fastreport should allow to print this existing PDF. Share this post Link to post
mvanrijnen 123 Posted March 27, 2023 48 minutes ago, Vandrovnik said: I understood - Fastreport should allow to print this existing PDF. ah ok, gonna take a look again, thanks for the tip  Share this post Link to post