postscript

Determine fonts used in postscript (.ps) file

Given a postscript file that has the following header %!PS-Adobe-3.0 I would like to list all fonts used in the file. The output does not have to be perfect, but I need to make sure I get all references to any font being used. I am aware there are different types of fonts, and that a font may or may not be embedded in the postscript f...

What is the process of turning HTML into Postscript programmatically

I am trying to understand what the process is of turning HTML into a PDF/Postscript programmatically All Google searches turn up libraries to do this, but I am more interested in the actual process required. I know you could just set up a Postscript printer and print directly to that, but some of these libraries appear to create the ...

Convert large raster graphics image(bitmap, PNG, JPEG, etc) to non-vector postscript

How to convert an large image and embed it into postscript? I used to convert the bitmap into HEX codes and render with colorimage. It works for small icons but I hit a /limitcheck error in ghostscript when I try to embed little larger images. It seem there is a memory limit for bitmap in ghostscript. I am looking a solution which can ...

I want to merge two PostScript Documents, pagewise. How?

hello, i have a tricky question, so i need to describe my problem: i need to print 2-sided booklets (a third of a paper) on normal paper (german A4, but letter is okay also) and cut the paper afterwards. The Pages are in a Postscript Level 2 File (generated by an ancient printer driver, so no chance to patch that, except ps2ps) generat...

postscript to text

I am working on a project to convert OCR'd PDf to png using ImageMagick and ghostscript and display in the browser so that i can select words in the image by letting a user query for the word . Imagemagick works fine along with ghostscript . I have a problem with the ps2text utility where it does not work reliably with pdf's . could any...

Show EPS file in ABCpdf with standards modes set to IE8

<meta http-equiv="X-UA-Compatible" content="IE=8"> or <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"> With this set my EPS files are not rendered in ABCpdf, but set to EmulateIE7 and they work fine. I know EPS aren't a standard web format but they are embedded into a PDF using a bit of ABCpdf magic. Because IE8 isn't ...

pdfmark for docinfo metadata in pdf is not accepting accented characters in Keywords or Subject

I am inserting metadata into postscript files with a program, to be distilled to pdf with Adobe Distiller. I am using this code that I grabbed from an online chapter of Thomas Merz's "Web Publishing with Acrobat-PDF": /pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse [ /Title (mot accenté) /Author (mot accenté)...

How to printing duplex sections with Word 2007

I have a Word 2007 document with many sections. Each section enables / disables duplex using a PCL5 escape code in the header on page 1 of the section. PCL5 printers are getting rarer, especially high volume / capacity ones. Is there an equivalent generic code that could be used instead of a printer specific code? Or is there a PCL6 ...

Query a printer to determine the postscript inputslot tray numbers

I'm trying to figure out a way to programmatically determine a printers inputslot tray to number definitions for use in generating postscript. I have gathered a collection of PPD files and collated information that way but it seems stupid to be limited to only the printers i have the PPD's for - would be better to interrogate the printe...

How to change page orientation of PDF? (GhostScript or PostsScript solution needed)

Given a PDF document, how do I change individual page orientation? I'm using latest version of GhostScript. ...

Layout of edge and node in graphwiz

hi, In graphwiz I would like to have an edge that don't cross the node. Here is my graph: digraph G { rankdir=LR; fontname = "Bitstream Vera Sans"; fontsize = 8; node [ fontname = "Bitstream Vera Sans" fontsize = 8 shape = "record" ]; edge [ fontname = "Bitstream Vera Sans" fontsize = 8 ]; MethodContext [...

error when trying to import ps file by grImport in R

I need to create a pdf file with several chart created by ggplot2 arranged in a A4 paper, and repeat it 20-30 times. I export the ggplot2 chart into ps file, and try to PostScriptTrace it as instructed in grImport, but it just keep giving me error of "Unrecoverable error, exit code 1". I ignore the error and try to import and xml file...

Ghostscript converting Postscript to PNG is over-saturated

I'm trying to use Ghostscript and/or ImageMagick to convert each page of a Postscript document into PNG images. The problem is that both produce images that are way too saturated (I think that's the right terminology). Here are the commands I'm trying: gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 -sOutputFile=page...

Printers common interface

What is a common printer interface today? I've read most of them support PostScript and/or PCL. How should I use PS/PCL from an app code (say, under Win32)? ...

PDF to PS conversion

Hi all, This may be an oft-repeated question but I have searched and found no convincing answer. Is there any way or tool or library that converts a PDF containing images,text, etc to PS(PostScript) ? Any help would be greatly appreciated. Regards p1nG ...

Can't add new Redirected Port in Windows 7 after installing RedMon

My operating system is Windows 7 32bit. I installed RedMon1.7, Ghostscript 8.71 and GSview 4.9; installations were successful. I went to Add New Local Printer in Windows Devices and Printers, clicked on Create A New Port, and selected Redirected Port from the Type of Port list. Clicked Next and in the Add New Port window I named RPT1: an...

How to find which computer send the print job?

I'm creating a postscript printer for windows 7 which will accept print jobs and forward them to real printers. It will be shared in the LAN and can receive print jobs from LAN computers. I want to find out from which computer a print job came from before forwarding them to a printer. How can I do this? Is the details available in the pr...

Where can I find resources on developing a PostScript printer for Windows 7

I'm developing a virtual printer to accept print jobs and route them to real printers in a LAN. I'm hoping to create a postscript printer to act as a shared virtual printer to accept print jobs from the LAN, I hope to develop it through ghostscript and redmon. If you can please let me know any online resources, examples or any tutorials...

How to merge two postscript files together?

I am trying to merge two or more postscript files into one. I tried concatenation but it does not work as each postscript file may have different resource header. Have anyone done this before? Are there any libraries (commercial or open source) out there? I do not mind C++, C# or even Java libraries. Edited These are large postscript ...

How to process PDF documents?

I need some recommendations on processing PDF documents. These documents are annual statements and contains amounts and dollar figures that I need to reconcile. I saw some recommendations on 1) iTextSharp, 2) PDFBox (IKVM) 3) PDFSharp 4) PDFEdit API (from Adobe) Which ones would you recomend and if there are any limitations that I ...