postscript

PostScript interface for non-PostScript printers with IPP and IIS?

Is it possible to use IPP and IIS to provide a PostScript interface for a printer that does not natively support PostScript? The aim here is to provide a generic interface for printing over IPP, so that clients can standardize on a single driver (PostScript) instead of having to download drivers for different printers. I could do this w...

How to create a virtual printer in Windows?

I want to create a virtual printer driver for Windows. Where should I start? The WDK has some printing drivers examples, but nothing I can use. MSDN doesn't seem to be very helpful. There are a lot of virtual printers for Windows out there (mostly they generate PDFs), how do they do it? Any links to the documentation I seem to miss are...

Libraries for parsing PDF, PostScript, and/or DjVu

What I want to do is pretty simple: given a PDF/PS/DjVu file containing a paper/book, find the authors and title of the paper (any other metadata would be good, but less needed). This recognition doesn't have to be perfect, but I'd like to make it as good as I can. I am looking for open-source .NET and/or Java libraries (preferably .NET)...

How to reduce size of R plots in EPS format?

I have a histogram with several hundred items, for which I do a Q-Q plot. This results in EPS that is 2.5 megabytes large. This is too much for a figure that is only going to be included in a publication and is not going to be viewed at 100x magnification. Is there any option in R to somehow output smaller EPS? I have searched docs to n...

Duplex Postscript - Force new page

Is there an easy way to force a postscript page onto a new physical page without inserting a blank page? e.g. Say I have a PS document with 10 postscript pages, which needs to print into different document bundles : 1 - Physical Page 1 Front Side 2 - Physical Page 1 Rear Side 3 - Physical Page 2 4 - Physical Page 3 Front Side 5 - P...

How to use OpenType fonts in a PostScript program?

I am writing a PostScript program to print name badges and would like to include an OpenType font such that I can use it later on. OpenType files are binary files and I am looking for advice how such fonts are included into PostScript files as they are sent to a printer. I am developing on Mac OS X which might be relevant if I need con...

Looking for freeware Postscript font editor

I have been looking for a good freeware Postscript Type 1 font editor (for Windows XP). All freeware font editors I have come across deal only with Bitmap, True Type or Open Type fonts. (I could only find FontForge but its download option leads to a maze and I am ashamed to say that I found no way out.) If freeware isn't available, the...

Any good postscript drawing libraries?

I need to draw some pictures for my LaTeX documents, and I've found that hand-made PostScript seems to be a good fit (I want to do stuff programatically, need math functions, etc.). I've also tried TikZ but that just seemed overcomplicated and hard to use. However, using plain standard PostScript is a bit painful since there aren't real...

Appending multiple xml files to a single output using xsl-fo

Hi, I'm creating a PostScript file from XML input using xsl-fo (Apache-FOP). I need also to append multiple such XML to a single PS file. 1. Does Apache-FOP support appending to output? 2. if not, is there away around this issue? (concatenating the XMLs is not an option). Thanks in advance ...

Print PDF document with python's win32print module?

I'm trying to print a PDF document with the win32print module. Apparently this module can only accept PCL or raw text. Is that correct? If so, is there a module available to convert a PDF document into PCL? I contemplated using ShellExecute; however, this is not an option since it only allows printing to the default printer. I need to...

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript format when printing to a file?

Is there a way to determine in .Net (or WMI) if a print driver will print to PCL or PostScript or XPS format when printing to a file? ...

How to add page numbers to Postscript/PDF

If you've got a large document (500 pages+) in Postscript and want to add page numbers, does anyone know how to do this? EDIT: Moved my solution down into an 'answer' ...

Ghostscript ERROR: /undefined in --get--

I'm trying to use Ghostscript in CentOS. When trying to issue the following Ghostscript command ghostscript -sDEVICE=pcx256 -r150x150 -sOutputFile=OUTPUT_FILE INPUT_PDF I am getting the following error: ESP Ghostscript 815.02 (2006-04-19) Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved. This software comes w...

Printing to a postscript printer from PDF4NET

I have a postscript RIP I'm trying to send data to from PDF4NET and I'm having spotted results. If I print the files from their saved PDF format they print fine, however if I print them from within the PDF4NET programmed tool, all the pages print, but the data is not all there. I understand the PDF4NET uses windows API for printing, and ...

Is there a way to extract text from PostScript (.ps , .eps) files using Java?

I am looking for a solution similiar to PDFBox for PDFs of Apache Tika, however, for PS files. thanks. ...

How can I select papertray

How do I programatically select the papertray to use when I send a document to the printer? There is different papers in the trays (A5, A4, A4 with one tear off part or two tear off parts, Papers with logo and without logo). Today we use the setpapertray command directly in the postscript-file, but this is not very convenient especially...

Converting PDF to PostScript with GhostScript

I installed ghostscript and updated the appropriate path variables ... however, I'm getting an error when I try to execute this command: C:\PROGRA~1\gs\gs8.64\lib>pdf2ps mydocument.pdf mydocument.ps Access is denied. Unable to open command line file _.at Is this the right command? did I miss some configuration or path setting? Otherwi...

Generating Postscript using PHP: browser offers to save file

$ps = ps_new(); ps_open_file($ps,$filename); ps_begin_page($ps,$size,$size); ps_set_parameter($ps, 'SearchPath' , '/usr/share/texmf-texlive/fonts/afm/bluesky/cm'); $psfont = ps_findfont($ps, "cmr10", "", 0); ps_setfont($ps, $psfont, 12.0); ps_circle($ps,$size/2,$size/2,$size/10); ps_circle($ps,$size/4,$size/2,1); ps_circle($ps,$size/...

Problem - Sending postscript data to printer using ExtEscape

I'm trying to send postscript data to the printer using ExtEscape, but the printer didn't respond at all for the following code (1st ExtEscape returned true. 2nd ExtEscape also returned true, but no print came out). I appreciate any help. escapeCode = POSTSCRIPT_PASSTHROUGH; if (bReturn = ExtEscape( printerDC, QUERYESCSUPPORT, sizeof(in...

Convert TIFF to PostScript

I'm writing .net code (Windows Forms Application) which reads a TIFF image (CMYK) and sends it to printer (using WritePrinter). Before I send it, I need to convert the TIFF image to PostScript. Could any of you share the code how to create PostScript out of TIFF image? I appreciate it! ...