| |
Create portable document format (PDF) files on all platforms that
run Synergy DBL. Written completely in Synergy DBL, no third partly
drivers or utilities required. (Requires Synergy Version 7.3 or
higher)
Main Features:
Different scales, paper sizes, orientation.
Scales - MM, INCH,
CM, POINT
Size - A5, A4, A3,
Legal, Letter
Fonts, lines, boxes (optional rounded corners), colours, images
(PNG and JPEG).
Rotation of text, images, line drawing by a given number of degrees.
Automatic page headers and footers. (Application definable)
Definable margins widths for top, bottom, right and left.
Embed, document title, author, subject and keywords.
Display options, initial zoom percentage, single page, two pages
side by side.
Optional page compression using zlib library (www.zlib.net)
Programmatically defined output file names.
Internal document and external URLs links associated with text
or images.
Convert existing text output to PDF in one easy step.
Create multiple PDF documents simultaneously.
Total control over PDF document generation.
Windows Platform: If you have Acrobat Reader installed are
you system (Free download available from www.adobe.com/downloads)
you can now print your PDF documents without viewing them first.
Using the 'silent' print option in Verison 1.6 or higher. Simply
generate your PDF document, then print it. Optionaly you can pop
up the print dialog to change the print options.
Download a demo copy of DBL2PDF
for Windows from the download area.
Examples of API coding
'Hello World'
.include 'pdf_defines.def'
.align
record
pdf ,D_ADDR
err ,i4
.proc
err = %pdf_Init(pdf, PDF_PORTRATE,
PDF_UNIT_MM, PDF_FORMAT_A4)
xcall pdf_AddPage(pdf)
xcall pdf_AddText(pdf, 4, 10,'Hello
World !')
err = %pdf_Output(pdf, PDF_OUTPUT_FILE,
'c:\temp\test.pdf')
.end |
The above example will create a one page A4 size PDF file in portrate
mode. With the text 'Hello World!' displayed on it. The PDF file
will be called 'test.pdf'
Add Text File to Document
Existing text reports can be added to the current PDF quickly and
simply.
.include 'pdf_defines.def'
.align
record pdf ,D_ADDR
err ,i4
.proc err = %pdf_addfile(pdf, 'c:\temp\test.prt',
132) err = %pdf_Output(pdf, PDF_OUTPUT_FILE,
'c:\temp\test.pdf')
.end |
The above example will create a A4 page size PDF file in landscape
mode to accommodate the 132 character width. The text file called
'c:\temp\test.prt' will be added to the document. The PDF file will
be called 'test.pdf'
Add Image to Document
.include 'pdf_defines.def'
.align
record pdf ,D_ADDR
err ,i4
.proc err = %pdf_Init(pdf, PDF_PORTRATE,
PDF_UNIT_MM, PDF_FORMAT_A4) xcall
pdf_AddPage(pdf) err = %pdf_addimage(pdf,
PDF_IMAGE_JPEG, 'c:\temp\logo.jpg', 10, 20) err
= %pdf_Output(pdf, PDF_OUTPUT_FILE, 'c:\temp\test.pdf')
.end |
The above example will create a one page A4 size PDF file in portrate
mode. With the image called 'c:\temp\logo.jpg' displayed on it at
10mm from the left and 20mm from the top. The PDF file will be called
'test.pdf'
Image Optimization - If the same image file is
used multiple times in a single document, the image is only stored
once inside the PDF document.
Add a Watermark to Document
.include 'pdf_defines.def'
.align
record pdf ,D_ADDR
err ,i4
.proc err = %pdf_Init(pdf, PDF_PORTRATE,
PDF_UNIT_MM, PDF_FORMAT_A4) xcall
pdf_AddPage(pdf) xcall pdf_setheader(pdf,
'myheader') xcall pdf_addText(pdf,
100, 10,'Hello World !') err = %pdf_Output(pdf,
PDF_OUTPUT_FILE, 'c:\temp\test.pdf')
.end
.subroutine myheader a_pdf ,n
.proc xcall pdf_rotate(a_pdf, 45,
10, 260) xcall pdf_setfont(a_pdf,
PDF_FONT_ARIAL, PDF_FONT_BOLD, 70) xcall
pdf_SetTextColor(a_pdf, 255,192,203) xcall
pdf_setxy(a_pdf, 80,220) xcall pdf_addtext(a_pdf,
0, 25, "D r a f t C o p y") xcall
pdf_rotate(a_pdf, 0) xcall pdf_SetTextColor(a_pdf,
0,0,0) xcall pdf_setxy(pdf, 8,5)
.end |
The above example add a message 'Draft Copy' to each page of your
document. It also show how to write custom header routines.
For more information about this product or pricing please contact
us
Links:
Here are some PDF readers available:
Zlib Compression Library - Used
for the compression of the PDF documents (www.zlib.net)
Ghostscript, Ghostview and GSview (Variety of Software licenses, with some tools are under the GNU General Public License)
This includes a class of tools that can view PostScript and PDF files. Most tools available for Microsoft Windows, Macintosh, and most flavors of Unix. This tool is normally pre-installed with most Linux distributions. Enabling this viewer for Web-usage involves configuring ones browser if this was not already done by the OS distribution vendor.
Xpdf (GNU General Public License)
Xpdf is a viewer for Portable Document Format (PDF) files. (These are also sometimes also called 'Acrobat' files, from the name of Adobe's PDF software.) Xpdf runs under the X Window System on UNIX, VMS, and OS/2. The non-X components of the package (pdftops, pdftotext, etc.) also run on Win32 systems and should run on pretty much any system with a decent C++ compiler.
BePDF is a program based on Xpdf that runs on BeOS.
Adobe Acrobat Reader (Proprietary, with this End User License Agreement)
Adobe Acrobat Reader is software you can download for free that lets you view and print Adobe Portable Document Format (PDF) files. Available for Microsoft Windows, Apple Macintosh, and some versions of UNIX and Linux.
|
|