|
-
Dec 26th, 2001, 06:04 AM
#1
Thread Starter
Member
Image to Postscript
Guys,
How can i convert an image(BMP,GIF,JPEG only) to PostScript format?
Thanx in advance
Regards
Amprat
-
Dec 26th, 2001, 10:55 AM
#2
You have to have a PS printer installed on the PC. Re-direct print output to FILE. The printer driver makes postscript files. You can do this in api with PrinterProperties
Code:
Private Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, pDefault As Any) As Long
Private Declare Function ClosePrinter Lib "winspool.drv" (ByVal hPrinter As Long) As Long
Private Declare Function PrinterProperties Lib "winspool.drv" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long
Private Sub Form_Load()
'KPD-Team 2001
'URL: http://www.allapi.net/
'E-Mail: [email protected]
Dim hPrinter As Long
OpenPrinter Printer.DeviceName, hPrinter, ByVal 0&
PrinterProperties Me.hwnd, hPrinter
ClosePrinter hPrinter
End Sub
There are no direct conversion tools (other than ones you buy from Adobe - because they own the rights to postscript) that are free. If there were, I'm sure Adobe would be suing them to stop publishing the tool.
-
Dec 26th, 2001, 01:35 PM
#3
Here is some freeware from GNU - it's meant for unix. I believe there is a port to MS. It's basically a printer driver that runs at high level.
http://www.inf.enst.fr/~demaille/a2ps/
Anyway, it's as close as I can get for free.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|