#1 2010-10-24 07:04:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Synose PDF engine 1.10

The Synopse PDF Engine was just released under version 1.10

Here are the changes from version 1.8.8 to 1.10:
  - code modifications to compile with Delphi 6 compiler
  - new TPdfImage.CreateJpegDirect method and PixelWidth/PixelHeight properties
  - synpdf.zip file now contains the SQLite3Pages unit, for easy report creation from code (with preview and on demand printing or pdf/txt export)
  - crc32 is now coded in inlined fast asm (crc32.obj is no longer necessary)
  - crc32 hashing is performed using 8 tables, for better CPU pipelining and faster execution
  - crc32 tables are created on the fly during unit initialization, therefore it saves 8 KB of code size from standard crc32.obj, with no speed penalty
  - both zip library obj files (i.e. deflate.obj and trees.obj) updated to version 1.2.5

The full source code from the framework is available to download from synpdf.zip licensed under a MPL/GPL/LGPL tri-license.

Compatible with Delphi 6 up to Delphi XE.

Offline

#2 2010-10-26 05:41:53

TPrami
Member
Registered: 2010-07-06
Posts: 119

Re: Synose PDF engine 1.10

Hello hello,

Can I use this library to make Pdf, with high resolution image and transparent text and images on top of those images.

I need to have high resolution background images and have some text and transparent image on top of it...

Can I do this, and if, any tips?

.TP.

Offline

#3 2010-10-26 06:33:19

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Synose PDF engine 1.10

Of course, you can do that.

The easiest way is to create the image using a TMetaFile/TMetaFileCanvas, then render it using the SynPdf unit.
Use TBitmap for high resolution images, then draw text on top of those images.

For transparent image, I'm not sure it will work directly (the AlphaBlend command is not implemented in the metafile enumeration).
Perhaps you'd have to draw the transparent image over the background image in a temporary bitmap, then use it before adding to the pdf.

You will be able to compress the high resolution pictures using either JPEG compression, or lossless zip compression.

Offline

#4 2010-10-27 18:33:33

TPrami
Member
Registered: 2010-07-06
Posts: 119

Re: Synose PDF engine 1.10

Ok,

Is there some demo code, to loook at?

Thanks for your reply...

-TP-

Offline

#5 2010-10-28 05:42:04

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Synose PDF engine 1.10

The easiest way to do it is to use a TPdfDocumentGDI class, then use its VCLCanvas method, just as usual.

You've sample code in this forum, and in the TTestSynopsePDF._TPdfDocumentGDI method of the SynSelfTests unit.

Offline

Board footer

Powered by FluxBB