Guys,
How can i convert an image(BMP,GIF,JPEG only) to PostScript format?
Thanx in advance
Regards
Amprat
Printable View
Guys,
How can i convert an image(BMP,GIF,JPEG only) to PostScript format?
Thanx in advance
Regards
Amprat
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
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.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
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.