導航:首頁 > 文檔加密 > 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相關的資料

熱點內容
java列出所有文件 瀏覽:865
壓縮包看圖軟體 瀏覽:186
sqlite在android中的應用 瀏覽:656
一本通pdf 瀏覽:910
2021免費的編程軟體 瀏覽:123
項目編譯後瀏覽器不對應刷新 瀏覽:564
三星升級android60 瀏覽:292
粘土的壓縮模量 瀏覽:115
美國程序員生活 瀏覽:219
51單片機摘要 瀏覽:405
英語經典pdf下載 瀏覽:317
大學文件夾怎麼刪除 瀏覽:668
linux科研軟體 瀏覽:553
ue4打包編譯著色器 瀏覽:775
雲伺服器可以在手機上登錄嗎 瀏覽:677
網游腳本為什麼要連接伺服器 瀏覽:9
程序員發展路線圖 瀏覽:320
手機語音加密會議 瀏覽:592
冰與火pdf 瀏覽:421
為什麼叫我買阿里雲伺服器 瀏覽:475