There are two systems. I need to get the document in some format and print it in my application.
The source file should be in a pdf format.
Do you know the component for delphi7 that i could be able to open pdf file and print it on delphi's canvas. Is such approach good for the pdf document quality?
Or which format of the source document could be better to print in delphi application?
Thanks
I think almost all PDF preview components may do it.
When searching - https://www.google.ru/search?client=opera&q=delphi+render+pdf+to+canvas&sourceid=opera - you would instantly get at least few commercial libs:
http://www.gnostice.com/nl_article.asp?id=229&t=Convert_PDF_To_High-Resolution_Images_Using_Delphi
http://www.quickpdflibrary.com/faq/can-i-use-quick-pdf-as-a-viewer-in-my-delphi-application.php
http://www.wpcubed.com/manuals/wpviewpdf/idh_twpviewpdf_printhdc.htm
TCanvas is a wapper around Windows HDC. See http://docwiki.embarcadero.com/Libraries/en/Vcl.Graphics.TCanvas.Handle
Related
We used to use ExtraDevices to print ReportBuilder Reports to Excel. Unfortunately, there seems to be no support for Delphi XE.
Can someone suggest an alternative way to print a ReportBuidler Report to Excel? It doesn't have to be a free solution, though an open source option is always preferable.
I am currently considering Gnostice and ReportBuilder Export Devices Pro
Our only requirement is to be able to print to Excel, so my initial sense is that option 2 might be a better fit.
How reliable are these tools? And, can someone suggest other alternatives? We do not need to print to PDF.
Thank you!
This may be too late now but I am leaving this response for anyone else who might be interested in it. (I am from Gnostice.) If you are using eDocEngine, there are three ways to save the report as XLS. Instead of the PDF engine component used in this article, use our XLS engine component. You can enable the print to file option and let it save to an XLS file. You can also use a RTM template, load it with data and print to file. You can also create a RAF file and also render it to XLS without any user interaction.
http://www.gnostice.com/nl_article.asp?id=243&t=Export_From_ReportBuilder_To_PDF_And_Other_Formats
Which of the mainstream Delphi report generators (if any) supports generating PDF files that comply with PDF/A standard? I'm mostly curious about FastReports and QuickReport.
We provided an open source report builder, to be used from code, which is able to produce PDF or even PDF/A compliant files.
You create your report from code, then you can preview it on the screen. You can then print or export the report as PDF. Note that the report drawing uses GDI+, even if you embed .emf files or TMetaFile in them: with antialiaising, they just look smooth on screen. There are some report-dedicated methods to create the report, but also a true Canvas property, in which you can draw whatever you want.
You can use the same class without the preview function, just to create a pdf file from some content.
It's free, licensed under MPL/LGPL/GPL, and compiles and run from Delphi 6 up to XE. It's 100% Unicode-ready, even before Delphi 2009.
In order to have your reports being compliant with the PDF/A standard, you must ensure that the ExportPDFA1 property is set to true. Only a sub-set of the font file (i.e. only used characters) will be joined to the pdf content, saving disk space. Therefore PDF/A files will be bigger than PDF files generated with the default options.
Reporting has just been enhanced (in our source code repository): now handle bookmarks, links, and document outline, and life-navigation within the report preview. The generated PDF file also handle those links and outline tree. Some issues were also fixed (about bitmaps or underlined text). And one bitmap will be stored only once in the PDF, if it's drawn several times on the report. So make sure you're using the latest source code repository version.
Have you considered using a PDF printer such as PDF Factory?
Generally the quickest way to get PDF's from reports.
what is the easiest method to convert a PDF into a TBitmap image in delphi?
if there are any commercial available tools for delphi, I can buy one if it is reliable and or not expensive...
I am thinking of some kind of viewer which I can browse pages.. zoom... and export in the desired resolution..
I have had good results with QuickPDF. It's relatively inexpensive and there is a trial version available.
You could try using the ghostscript api from delphi (see http://ftp.uasw.edu/pub/ghostscript/contrib/ for delphi example files) to convert to a bitmap.
Though I've not used it (was just aware of its existence) I would expect you should be able to put the data into a memory stream and read it from there.
Though, if your software is going to be non-open source it could be an issue .
I'm looking for an application that will allow me to add mark-ups to pdfs just like adobe acrobat does via the comments option (e.g. stickynotes), including the options of hiding all comments, showing, printing and saving them to the pdf. My application is written using delphi 2009 and this is an additional feature I require.
There doesn't appear to be any vcl providers out there doing this at the moment (?). I've contacted quickpdf, vispdf, etc, etc
I'm particularly interested in hearing from anyone who has done this already / can do this,
thanks,
Matthew
Gnostice are well known for their PDF components for Delphi, specifically PDFtoolkit.
For future readers, Amyuni PDF Creator allows to select (and create) specific components within a PDF file (such as text, images or annotations) and change their attributes. It can be used in Delphi as an ActiveX control.
I have multiple rave reports(projects) in the project(the delphi project) and I want to save them all in one pdf file. How can I do it?
While I don't have any real experience with Rave reports, I also had to perform stitching of multiple "pdf" pages to a single pdf document. I ended up using Gnostice PDFToolkit to do the final merge and it works quite well. In my case I was generating multi-thousand page documents, so i'm sure it will fit your needs.
Does Rave already export to PDF? If so then there are a number of libraries that support merging of PDFs programmatically. The main difference between them will be how many files they can merge at once (some support only two and some support merging a full array at once) and how quickly the output is produced.
If Rave doesn't already export to PDF, however, then you'd likely need a printer driver based PDF component. The idea would be to tell Rave to print the report to a named virtual printer, then use the printer driver based component to capture that print job as a PDF. Once you've got the PDF, you can do the merge.
It's been years since I've personally worked with Rave (last time was in the C++Builder/Delphi 6 days) but hopefully this helps. If you need more info just let me know, I worked at Borland for a long time (before they became Embarcadero) and now work with PDF toolkits for developers.