VFP 愛用者社區 首頁 VFP 愛用者社區
本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
 
 常見問題常見問題   搜尋搜尋   會員列表會員列表   會員群組會員群組   會員註冊會員註冊 
 個人資料個人資料   登入檢查您的私人訊息登入檢查您的私人訊息   登入登入

產生PDF技巧(轉貼)
前往頁面 1, 2  下一頁
 
發表新主題   回覆主題    VFP 愛用者社區 首頁 -> VFP 討論區
上一篇主題 :: 下一篇主題  
發表人 內容
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 1 樓

發表發表於: 星期一 四月 28, 2003 11:03 am    文章主題: 產生PDF技巧(轉貼) 引言回覆

評語:執行前,安裝GS704W32.EXE和WINSTENG.EXE
前往以下網址下載,兩個加起來超過13M
無法上傳.......................................


A Free Pdf Maker for VisualFox Pro.

PDFMaker is not just another windows PDF print driver designed to allow you to send anything to it . The difference is this program works from inside Visual Fox Pro to allow you to use all your existing fox reports and put them on your fox web server or produce a paperless solution for printed reports.

This program is designed to be run either as a server (with your web server or sand alone for desktop usage.

By following these instructions and you should have a PDF Maker, written in pure VFP code in a matter of minutes.
I
PDF Maker uses GhostScript as its internal processor, don't worry, These simple instructions allow you to install and configure it properly quite quickly. PDF Maker does NOT make use of Redmon or any other Shareware Products.

First Get and Configure the Adobe Driver
Download the Generic postscript driver from adobe.com from here.
http://www.adobe.com/support/downloads/product.jsp?product=pdrv&platform=win#
Go to start printers, (or control panels -printers) and select the newly created printer as your default and right-click to properties sheet of the Generic Adobe postscript driver. Select the advanced tab and select new driver.
From listing of manufactures select HP and the printer name of HP Color laser jet 8500 PS.
Then press apply. This creates the color printer driver which in turn creates .ps files (internally converted into PDF files).

Second Install GhostScript
Then install Ghostscript from here. http://www.ghostscript.com/
During installation just use the normal defaults.
If you selected any other non standard place for the location of Ghostscript (meaning anything other than c:\gs\gs7.04\bin\gswin32exe) the edit the file Locationofgs.ini with the correct full path to gswin32.exe

Third Copy the VFP PDFMaker Files
Copy the following files from the this Zip to a working directory (some fox project directory )
ps2pdf.prg
ps2pdfdir.prg
locationofgs.ini

Edit your your own .prgs with reports changing 1 line of code and adding a new line, to something like this.
report form customer_report noconsole to file psfile.ps
=ps2pdf('psfile.ps')

or something like this
my_outputfile = 'output.ps'
report form customer_report noconsole to file &my_outputfile
=ps2pdf(my_outputfile)

Once ps2pdf finishes a file by name of output.pdf or whatever. Your .PDF is created in a sub directory of the current working directory named pdffiles. You can then in code copy or email the files out. By naming your reports output file name, you know the name of the created PDF File . There is no naming the user has to do.

The file ps2pdfdir is a sample utility program designed to show you one way you can convert 100's of ps files in with one command line.
=ps2pdfdir(“c:\mypsdirectory\”)
Will convert all of the ps files in that directory – delete them, and place your newly formed pdf files in your pdffile directory

Credits :
I 'borrowed' parts of this code from the Microsoft Knowledge Base and hand converted the freely available Unix and Linux ps2pdf command files which basically do the same postscript to PDF conversions using GhostScript for Linux and Unix. The Microsoft borrowed code consisted the parts referencing createprocess().

Feel free to copy / modify any of this code. Its just my part keeping GNU alive.


Bob Lee
WWW.1amsoftware.com
bobl@1amsoftware.com


Ruey 在 星期一 八月 04, 2003 10:04 am 作了第 4 次修改
回頂端
檢視會員個人資料 發送私人訊息
garfield
Site Admin


註冊時間: 2003-01-30
文章: 2157


第 2 樓

發表發表於: 星期二 四月 29, 2003 12:52 am    文章主題: 引言回覆

那裡可以下載 VFP PDFMaker Files
_________________
利用>>搜尋<<的功能會比問的還要快得到答案.
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 3 樓

發表發表於: 星期二 四月 29, 2003 10:34 am    文章主題: 引言回覆

Sorry忘嘞放

但是我
已達到你的最大的上傳配額限制 256 KB
回頂端
檢視會員個人資料 發送私人訊息
garfield
Site Admin


註冊時間: 2003-01-30
文章: 2157


第 4 樓

發表發表於: 星期二 四月 29, 2003 11:20 am    文章主題: 引言回覆

馬上改^_^
_________________
利用>>搜尋<<的功能會比問的還要快得到答案.
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 5 樓

發表發表於: 星期二 四月 29, 2003 1:05 pm    文章主題: 引言回覆

見附件
回頂端
檢視會員個人資料 發送私人訊息
garfield
Site Admin


註冊時間: 2003-01-30
文章: 2157


第 6 樓

發表發表於: 星期二 四月 29, 2003 2:16 pm    文章主題: 引言回覆

Ruey! 謝謝你, 終於可以有個合法的PDF產生軟體了.
_________________
利用>>搜尋<<的功能會比問的還要快得到答案.
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 7 樓

發表發表於: 星期日 七月 27, 2003 2:57 pm    文章主題: 引言回覆

也可以使用Acrobat FDF Toolkit - Version 5


巧用ASP生成PDF文件
http://comp4.com/article.php?id=153

_________________
#############################
快樂媽咪系列幸福宅配,喝十全雞湯~原來幸福那麼簡單!!

學會VFP使用者社區的搜尋,Code才會更有趣~
#############################
回頂端
檢視會員個人資料 發送私人訊息
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 8 樓

發表發表於: 星期六 一月 17, 2004 2:25 am    文章主題: 引言回覆

推薦使用這個,與VFP最速配

免費的PDF產生器


https://sourceforge.net/project/showfiles.php?group_id=57796

_________________
#############################
快樂媽咪系列幸福宅配,喝十全雞湯~原來幸福那麼簡單!!

學會VFP使用者社區的搜尋,Code才會更有趣~
#############################


Ruey 在 星期二 二月 17, 2004 4:06 am 作了第 1 次修改
回頂端
檢視會員個人資料 發送私人訊息
Ruey



註冊時間: 2003-03-12
文章: 1698
來自: tunglo

第 9 樓

發表發表於: 星期一 二月 16, 2004 5:58 pm    文章主題: 引言回覆

這邊有一個PDF產生器,但需要註冊
All2PDF PDF Creator 3.122

http://gz2.onlinedown.net/soft/22528.htm

_________________
#############################
快樂媽咪系列幸福宅配,喝十全雞湯~原來幸福那麼簡單!!

學會VFP使用者社區的搜尋,Code才會更有趣~
#############################
回頂端
檢視會員個人資料 發送私人訊息
goto-dream



註冊時間: 2004-05-11
文章: 909


第 10 樓

發表發表於: 星期二 九月 07, 2004 9:21 pm    文章主題: 引言回覆

pdf995 一套免費而功能齊全的 PDF 文件產生器
http://toget.pchome.com.tw/intro/business_wordprocessing/18932.html

PDF 文件是一種由 Adobe 公司所推出的開放式文件標準,目前許多的公司行號與機關團體都使用此文件標準發行文件。如果你也想讓自己的文件以此種開放標準發行,那麼你可以採用 pdf995 軟體幫你將任何可列印的資料轉換為 PDF 文件


官方網站上還有別的小工具,比方說PDF Edit。可以讓您製作功能較多的PDF文件,不過在這邊就不討論。有興趣的可以自行下載玩玩看。

_________________
福隆昌淨水有限公司--淨水器的專家,淨水器,飲水機,濾心!!

想了解更多,您可上幸福雞湯組.找尋!!丁澐瑄.老師.

          愛作夢
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
goto-dream



註冊時間: 2004-05-11
文章: 909


第 11 樓

發表發表於: 星期二 九月 14, 2004 11:06 am    文章主題: 引言回覆

Ruey 寫到:
推薦使用這個,與VFP最速配

免費的PDF產生器


https://sourceforge.net/project/showfiles.php?group_id=57796


這個有些報表列印會有問題!!

_________________
福隆昌淨水有限公司--淨水器的專家,淨水器,飲水機,濾心!!

想了解更多,您可上幸福雞湯組.找尋!!丁澐瑄.老師.

          愛作夢
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
syntech



註冊時間: 2003-05-16
文章: 4212
來自: Taipei,Taiwan

第 12 樓

發表發表於: 星期二 九月 14, 2004 12:29 pm    文章主題: 引言回覆

我是用pdf995,
沒註冊也只是會開一個網頁而已

_________________
如果公司有下列困擾:
1. 找不到便宜,快速,簡易的 生產排程軟體
2. 不知道如何快速排定 採購計劃
3. 成本抓不準,自己算比軟體算有用
4. 想學習系統規劃,想找系統架構的顧問

請聯絡我們,也許我們幫得上忙
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件 AIM Address
catjoke



註冊時間: 2003-06-16
文章: 175
來自: 香港

第 13 樓

發表發表於: 星期二 九月 14, 2004 3:18 pm    文章主題: 引言回覆

ME 2, PDF995 WITH adv display only.

Smile

_________________
喵喎~ 貓當然是 "茅" 的嘛! ^0^;
回頂端
檢視會員個人資料 發送私人訊息
goto-dream



註冊時間: 2004-05-11
文章: 909


第 14 樓

發表發表於: 星期二 九月 14, 2004 3:41 pm    文章主題: 引言回覆

用PDF995產生的PDF移到頁底會出現
不知道各位是否有發生過這情形~~

_________________
福隆昌淨水有限公司--淨水器的專家,淨水器,飲水機,濾心!!

想了解更多,您可上幸福雞湯組.找尋!!丁澐瑄.老師.

          愛作夢
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件
syntech



註冊時間: 2003-05-16
文章: 4212
來自: Taipei,Taiwan

第 15 樓

發表發表於: 星期二 九月 14, 2004 5:16 pm    文章主題: 引言回覆

我沒遇過這樣的情況,
因為我都是"列印到 PDF995 印表機"

但是我用過一套 FRX2PDF 的工具,
它就出現這樣的情況,
我猜是因為字型名稱的關係,
"細明體"檔案名稱應該是 MINGLIU.TTC,
可是有些轉PDF 工具就真的把"細明體"或"新細明體"寫進去,
當然是亂碼一堆

我猜做成PDF檔的方式應該最少有兩種,
一種是把整個圖片做成PDF,例如印表時的METAFILE,
這種應該就無法再利用,
例如pdf2html,pdf2txt之類.
一種是像WORD一樣,上面的每一行字都是object,
一個一個的作進pdf檔中,
這樣就能再利用,但是缺點就是必須考慮內鑲字型的問題

_________________
如果公司有下列困擾:
1. 找不到便宜,快速,簡易的 生產排程軟體
2. 不知道如何快速排定 採購計劃
3. 成本抓不準,自己算比軟體算有用
4. 想學習系統規劃,想找系統架構的顧問

請聯絡我們,也許我們幫得上忙
回頂端
檢視會員個人資料 發送私人訊息 發送電子郵件 AIM Address
從之前的文章開始顯示:   
發表新主題   回覆主題    VFP 愛用者社區 首頁 -> VFP 討論區 所有的時間均為 台北時間 (GMT + 8 小時)
前往頁面 1, 2  下一頁
1頁(共2頁)

 
前往:  
無法 在這個版面發表文章
無法 在這個版面回覆文章
無法 在這個版面編輯文章
無法 在這個版面刪除文章
無法 在這個版面進行投票
無法 在這個版面附加檔案
無法 在這個版面下載檔案


Powered by phpBB © 2001, 2005 phpBB Group
正體中文語系由 phpbb-tw 維護製作