unit not found: fpvectorial lazarus / 21-General ---------------------------------------------------------------------- domasz · 2022-02-20 13:07 Hi! So after many years I finally migrated from Delphi to Lazarus. Most of the things work pretty great but I can't use fpvectorial in my program. When I added fpvectorial to my uses Lazarus says it can't find such thing. When I added path to "C:\lazarus\components\fpvectorial" to my Project's path it now shows a lot of errors in pdfvrsemantico and can't compile my project. Am I doing something wrong? ---------------------------------------------------------------------- Bart · 2022-02-20 13:37 Project->Project Inspector->Add->New requirement: Add a dependency on fpvectorialpkg. Bart ---------------------------------------------------------------------- domasz · 2022-02-20 13:48 It helped, thank you. But now it's missing "pdfvectorialreader" from this example: https://wiki.freepascal.org/fpvectorial#Format_conversion ---------------------------------------------------------------------- wp · 2022-02-20 14:36 PDF reading support seems to be experimental (and highly incomplete, looking at the short pdf-related files), the reader has not been added to the fpvectorialpage probably for this reason. (I do wonder then, however, why somebody writes a wiki example about it...). In general, do not expect too much from fpvectorial, it is very incomplete, and since its original developer left the team I doubt that this will change in the near future... ---------------------------------------------------------------------- domasz · 2022-02-20 18:19 Quote from: wp on February 20, 2022, 03:36:41 pmPDF reading support seems to be experimental Thank you. I am new to Lazarus and I thought everything that is available has been tested. ---------------------------------------------------------------------- wp · 2022-02-20 18:50 Yes, that's how it should be. But the entire code base is too large so that the few people of the Lazarus team cannot test every package and every example project and for all widgetsets supported. And when a developer decides to leave his code remains untouched until somebody else finds interest in it. But Lazarus is an open-source project, every user has access to the full sources, can run tests by himself, debug the issue found and submit patch to the bugtracker, or even submit his own ideas of new features. This way users can contribute to the evolution of project. ---------------------------------------------------------------------- Zvoni · 2022-02-21 07:16 If it's about reading/displaying PDF's maybe this: https://forum.lazarus.freepascal.org/index.php/topic,58056.0.html pawel supplied link to pdfium.dll and sample-project IIUIC it's windows only, but since i see a "c:\lazarus..." in the OP..... ---------------------------------------------------------------------- domasz · 2022-02-21 14:21 Quote from: Zvoni on February 21, 2022, 08:16:04 amIf it's about reading/displaying PDF's maybe this: https://forum.lazarus.freepascal.org/index.php/topic,58056.0.html pawel supplied link to pdfium.dll and sample-project IIUIC it's windows only, but since i see a "c:\lazarus..." in the OP..... Thank you, might be useful. I am developing on Windows but ideally I'd like to make a compiled program for Windows, Linux (at least Ubuntu) and MacOS so a dll isn't exactly perfect but might be better than nothing. I am not really trying to read PDF but just include PDF in PDF. There is a library for PHP called FPDF: http://www.fpdf.org/ which seems to be very similar to fpPDF. There is also a plugin for FPDF called FPDI: https://www.setasign.com/products/fpdi/about/ which lets you import PDF. This is what I am trying to find for Lazarus. ---------------------------------------------------------------------- Zvoni · 2022-02-21 14:42 Quote from: domasz on February 21, 2022, 03:21:33 pmThank you, might be useful. I am developing on Windows but ideally I'd like to make a compiled program for Windows, Linux (at least Ubuntu) and MacOS so a dll isn't exactly perfect but might be better than nothing. https://github.com/bblanchon/pdfium-binaries As i see it, binaries for the 5 major platforms ---------------------------------------------------------------------- domasz · 2022-02-22 02:16 Quote from: Zvoni on February 21, 2022, 03:42:13 pmhttps://github.com/bblanchon/pdfium-binaries As i see it, binaries for the 5 major platforms The dlls from here don't work with the sample project from here: https://forum.lazarus.freepascal.org/index.php/topic,58056.msg432524.h tml#msg432524