I have this small word editor written in Delphi, I need a library to save/export the text as a PDF document.
Is there any good library, .dll file, preferably free, that gives this function? maybe converting it from a string, or the .rtf file to a PDF?
Perhaps Synopse PDF engine - it is Open Source (you can choose between MPL/GPL/LGPL license) and it has builtin export from RTF to PDF (see comment by A.Bouchez, author of the lib).
Related
Is there any way to implement a viewer for a Web application which supports RTF files. I'm currently using iframe which doesn't support few file formats.
I also referred group docs viewer but it's a licensed library it seems. I need a open source api, dll to implement viewer for RTF files
I've bought a wonderful audio library from CricketTechnology with source. I cannot dump ck.lib with tDump64 and also tLib64 doesn't work for me. But windows LIB lists the content of ck.lib and can probably extract the .obj files. My idea is to extract all the .obj files listed and to repackage them with tLib. Is there a tool? I want to use the wonderful library with Delphi and have added some functions to the source code that are free from C++-objects.
This is probably something stupid I am doing but I have upgraded from 2007 to XE6/7 and I can't seem to find the Type library editor in the new version.
I understand the TLB formats have changed in later versions, I have Myproject_TLB.pas style files which compile OK but I can't change them.
The help file seems to suggest the Library editor is still there but I can't find a way to get to it, the "View/TYpe Library" option is greyed out.
Can someone point me in the right direction, I need to add some more properties and the help files are not useful.
The Type Library Editor is still present but is now an embedded editor for the RIDL file type. As per David's comment, the IDE now uses this RIDL file format as the storage format for type libraries, rather than the TLB file.
When you open a RIDL file in the XE6+ IDE, you will find a very familiar editor interface - basically the Type Library Editor. However, instead of the old Text tab alongside Attributes, Uses, Flags etc etc along the top, it is now reached via the bottom tab strip. The RIDL (Text) view is presented in the Code tab whilst the Type Library Editor style view is presented by the Design tab.
All you need to do is convert your TLB files in your D2007 project to the RIDL format and add these RIDL files to your XE6+ projects. The TLB files will be produced from these RIDL files as needed by the IDE similar to the way that binary RES files are produced from RC resource scripts.
The old Type Library Editor also supported this RIDL format, so one way to get your old TLB files into RIDL might be:
Open the TLB file in the D2007 IDE Type Library Editor
Select the library root node in the hierarchy
Switch to the Text tab
Select the entire contents
Copy/Paste into a text editor and save as a file with
a RIDL extension
Add that RIDL file to your XE6+ project
You can then choose to modify your Type Library either by directly editing the RIDL or using the Design interface, which will perhaps be more familiar to you. Whichever option you choose however, it is now the RIDL file which should be added to your version control, not the TLB.
If you do not have an older IDE available, or if you simply prefer, you can use a command line utility provided with Delphi to do the conversion:
tlibimp -I foo.tlb
Will create the foo.ridl file for the specified foo.tlb input file. Note that this form of the -I option is not supported on older versions of tlibimp but should be supported by the version provided with Delphi 2010 and later.
If you get an error saying that you need a "+" or "-" tagged on after the "I" option, then you are running an older version of tlibimp, perhaps being found on your path.
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
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.