[fpc-pascal] PDF generator: please test
Hello, Graeme has fixed a number of errors that should hopefully solve the problems with codepages; Changes have been tested on windows/linux/bsd but on Windows only with a system that has an english locale. These changes have been committed to FPC svn. (rev 33453) We would appreciate it if someone could test the PDF generating demo on a Windows with non-english locale, and report whether the first page of the generated PDF looks OK. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PDF generator, try 2
On 3/31/2016 7:02 AM, Michael Van Canneyt wrote: Hello In revision 33401 of FPC subversion, a lot of fixes have been committed for Font handling in the PDF generator: e.g. Unicode fonts should now render correctly. The test program generates the following PDF: http://www.freepascal.org/~michael/test.pdf Page 1 looks as follows on my system: http://www.freepascal.org/~michael/pdftest.png The output has been tested for correct rendering in the following applications: Firefox native viewer (Linux) Acrobat Reader 10 (Windows) Looks fine on an up to date Acrobat Reader DC (15.10.2006) as well, both on Windows (8.1, 10 Pro Insider) and Mac OS X (10.11.4) Ralf --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] PDF generator, try 2
Hello In revision 33401 of FPC subversion, a lot of fixes have been committed for Font handling in the PDF generator: e.g. Unicode fonts should now render correctly. The test program generates the following PDF: http://www.freepascal.org/~michael/test.pdf Page 1 looks as follows on my system: http://www.freepascal.org/~michael/pdftest.png The output has been tested for correct rendering in the following applications: Firefox native viewer (Linux) Acrobat Reader 10 (Windows) Foxit Reader (Windows) Xpdf (FreeBSD) Evince (FreeBSD) The GIMP (FreeBSD) Google Drive viewer LibreOffice Draw (linux) Okular (linux) The file was also generated on various platforms to make sure all platforms handle the generating correctly (locales, code pages etc.). If you find any more errors (let's hope not), please let me know. Enjoy, Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PDF generator
On Fri, 18 Mar 2016, Peter wrote: On 05/03/16 17:27, Michael Van Canneyt wrote: Hi, I have committed a PDF generator to FPC Subversion: fcl-pdf. Hi Michael, What's the input format? html? Object Pascal Code. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PDF generator
On Fri, 18 Mar 2016, Graeme Geldenhuys wrote: On 2016-03-05 17:27, Michael Van Canneyt wrote: I have committed a PDF generator to FPC Subversion: fcl-pdf. Michael. Is the fcl-pdf/utils/* really needed? As far as I can see that code is obsolete now that fpPDF can embedding TTF files directly. The usage of .fnt files are not used any more. If that directory gets removed, then the associated unit test for DejaVuSans.fnt should be removed too. Good point. I will remove it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PDF generator
On 2016-03-05 17:27, Michael Van Canneyt wrote: > > I have committed a PDF generator to FPC Subversion: fcl-pdf. Michael. Is the fcl-pdf/utils/* really needed? As far as I can see that code is obsolete now that fpPDF can embedding TTF files directly. The usage of .fnt files are not used any more. If that directory gets removed, then the associated unit test for DejaVuSans.fnt should be removed too. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PDF generator
On 05/03/16 17:27, Michael Van Canneyt wrote: > Hi, > > I have committed a PDF generator to FPC Subversion: fcl-pdf. > Hi Michael, What's the input format? html? Peter ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] PDF generator
awesome , many thanks ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] PDF generator
Hi, I have committed a PDF generator to FPC Subversion: fcl-pdf. Why a new pascal PDF generator ? Mainly because the existing ones written in Object Pascal suffer from several disadvantages: - Font support usually incomplete or downright buggy. - Dependency on a GUI (LCL, VCL, Windows). The latter is important because the PDFs must be generated on a headless (no display) webserver. So, the fcl-pdf package contains a PDF generating unit fppdf that does not depend on any external libraries or GUI system. The PDF generator has the following features: - Support for basic shapes. - Support for basic line styles. - Dictionary support. - Multi-page PDF. - Image support. - TTF Font support. - Font embedding. - Unicode font support. - Stream Compression. - Image embedding. - Several paper types. - Portrait/Landscape. - Support for multiple measurement units. - Rotation matrix system. - PDF creator information. - The generated PDF passes several PDF validators. The library is based on a library that came with FPGUI, with a feature set which came closest to what I desired. It was completed for the company I work for by Graeme Geldenhuys, and is heavily unit tested. It is not yet feature-complete, but the above should be ample for most applications. In the near future, I expect to commit a reporting engine which, likewise, does not need a GUI (but can use one) and uses the PDF generator as one possible backend. Todo: - Implement TFPCustomCanvas descendent (TPDFCanvas) that draws on a PDF. (should allow easy integration in LCL) - Partial embedding of (unicode) fonts (only used glyphs) for smaller PDFs. - On windows (possibly mac), allow to use native font mechanisms for extracting info from TTF files. - Reduce memory usage by streaming finished pages to file. Optionally: - PDF Forms ? - Archive format ? - Signatures ? Enjoy, I would welcome additional tests/demos, suggestions, bugreports, improvements or patches. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal