导航:首页 > 文档加密 > delphi生成pdf

delphi生成pdf

发布时间:2022-05-16 09:04:47

❶ delphi2010如何生成pdf文件,求详解!

不知道具体的用途,你可以安装个虚拟的PDF打印机,直接打印出PDF文件啊,如PDF工厂

❷ delphi 如何将WORD转换为PDF

使用vba来指定保存的文件格式为pdf,当然前提必须已安装MS Office的PDF输出插件(默认应该有)
procere TForm1.btn1Click(Sender: TObject);
var
wdo,wdoc,wdocs : OleVariant;
begin
wdo := CreateOleObject('Word.Application');
wdocs := wdo.Documents;

wdoc := wdocs.Open('d:\test.docx');

wdoc.ExportAsFixedFormat(OutputFileName:=
'd:\test.pdf', ExportFormat:=17);
//查word的宏帮助
{ OpenAfterExport:='True', OptimizeFor:='wdExportOptimizeForPrint', Range:=
'wdExportAllDocument', From:=1, To:=1, Item:='wdExportDocumentContent',
IncludeDocProps:='True', KeepIRM:='True', CreateBookmarks:=
'wdExportCreateNoBookmarks', DocStructureTags:='True', BitmapMissingFonts:=
'True', UseISO19005_1:='False'); }

end;

❸ Delphi7怎么调用Word2007另存为PDF的功能

delphi 调用 word 2007(或其他版本),可以使用 CreateOleObject 方法,通过 OLE 建立对 Word 的对象引用,再调用其另存为PDF的函数,示例代码如下:

procereTForm1.Button1Click(Sender:TObject);
var
oWordApp,oDoc,oDocs:OleVariant;
begin
oWordApp:=CreateOleObject('Word.Application');
oDocs:=oWordApp.Documents;
oDoc:=oDocs.Open('d: est.docx');

oDoc.ExportAsFixedFormat(OutputFileName:=
'd: est.pdf',ExportFormat:=17);
end;

其中,ExportAsFixedFormat 的函数声明如下:

❹ 怎么用delphi 把Excel,Word文件中生成到PDF文件

你好,OFFICE 07以上版本另存为-选择PDF格式就行了,如果是2007以下的版本,请看下面。
1.PDFFactory Pro虚拟打印机,安装后,在任何文档中,选择打印时,选择打印机为pdfFactoryPro,就能生成PDF文件,并可以进行安全设置。
2.SmartPrinter(Doc Pdf xls to pdf/tiff/bmp/jpg/png)一款大家非常熟悉的经典产品,专为转换文件而研发的高品质打印驱动,以运行稳定、转换速度快和图像质量高而着称,通过虚拟打印技术可以完美的将任意可打印文档转换成 PDF、TIFF、JPEG,BMP、PNG、EMF、GIF、TXT格式。
3.雪莹DocConvert虚拟打印转换。雪莹DocConvert是一款文档转化工具,它通过虚拟打印的技术将任何文档转化为PDF,JPG,BMP,TIFF,PCX,PNG等等文档格式。
4.EasyPrint(虚拟打印机) V2.1,本软件实现的功能是把指定文档打印到文件,成为标准的BMP位图,实现无纸打印的功能。主要应用在需要把一些文件打印后扫描再处理,或者一些需要打印效果的软件的插件。例如:把WORD文件打印到BMP文件,然后进行处理
5、可以用金山的WPS软件安装后用来转换,还有可以用PDFtoWord软件进行转换
6、打开Word2007文档,单击左上角的office按钮,选择“另存为”,如果没有安装加载项,可以去“下载”,运行安装“Save as PDF or XPS.exe”,提示安装成功后,再单击左上角的office按钮,选择“另存为”,选择“PDF或XPS”,单击“发布”,等一会就会完成。

❺ delphi系统将信息读取到EXCEL后怎么能导出为PDF呢

  1. 可以直接导出为PDF,而不是先到EXCEL

  2. 如果导出到EXCEL以后,可以安装一个PDF打印机,直接从EXCEL打印成PDF即可

❻ 麻烦问下 delphi 如何创建PDF 有没好用一点的库。主要功能插入图片,加文字水印即可。XE

创建Excel没问题吧,把你需要的东西用Delphi导出到Excel 然后EXCEL直接另存为PDF就可以了。

❼ 生成PDF使用Delphi中的Windows服务的基本知识问题,怎么解决

生成PDF使用Delphi中的Windows服务的基本知识

I'm writing a windows service using Delphi XE3. The service is going to read from a database, generate a pdf using quickreport 5.05.1. I plan to generate the pdf using TQRPDFDocumentFilter.

Everything works fine in a normal VCL application, but when I implement it in a windows service the service hangs (without any exceptions) when I do a QuickRep.Prepare.

I have read that it is possible to use QuickReport in a windows service, but I do not know how. Any suggestions?

Where is the code:

procere foo
var
pdfFilter: TQRPDFDocumentFilter;
begin
with TForm2.Create(Self) do
begin
ClientDataSet1.Open;
QuickRep1.Prepare;
pdfFilter := TQRPDFDocumentFilter.Create(GetApplicationFolder() + 'test.pdf');
try
QuickRep1.QRPrinter.ExportToFilter(pdfFilter);
finally
pdfFilter.Free;
ClientDataSet1.Close;
end;
end;
end;

Edit: I have also tried turning off "show progress" on the QuickReport as suggested in another thread. Writing some code to catch an exception reveals that it indeed throws one. The message is "There is no default printer currently selected". So this leads me to believe that the local system user that the service is running under does not have any printers installed and that this is the problem.

I have resolved a similar problem (printing to a shared network printer from a Java server running as a Windows service) with these steps:

❽ 请教delphi 下有什么接口可以提取pdf 文件

delphi 里显示和读取pdf文件,可以考虑使用以下的方法:

1、可以利用 TWebBrowser 控件显示PDF文件。

2、如果安装了 acrobat reader 或是 其他 PDF软件(比如,FoxIt),可以通过 ActiveX 来使用软件提供的库来完成。

3、下载一些专门的组件,如:Quick PDF Library等。

阅读全文

与delphi生成pdf相关的资料

热点内容
卡尔曼滤波算法书籍 浏览:769
安卓手机怎么用爱思助手传文件进苹果手机上 浏览:844
安卓怎么下载60秒生存 浏览:803
外向式文件夹 浏览:240
dospdf 浏览:431
怎么修改腾讯云服务器ip 浏览:392
pdftoeps 浏览:496
为什么鸿蒙那么像安卓 浏览:736
安卓手机怎么拍自媒体视频 浏览:186
单片机各个中断的初始化 浏览:724
python怎么集合元素 浏览:481
python逐条解读 浏览:833
基于单片机的湿度控制 浏览:499
ios如何使用安卓的帐号 浏览:883
程序员公园采访 浏览:812
程序员实战教程要多长时间 浏览:979
企业数据加密技巧 浏览:135
租云服务器开发 浏览:814
程序员告白妈妈不同意 浏览:337
攻城掠地怎么查看服务器 浏览:601