using Using Ghostscript on certain PDF files fails to generate thumbnails: Error: /undefined in --get--
We have a few PDF's that we get that were generated via Illustrator.
You can confirm that by simply viewing the following files via a text
editor like Wordpad. We are using Ghostscript to generate JPG
thumbnails of PDF files. Many work fine but there are several cases
where the thumbnail generation fails. We noticed that in Acrobat 6 the
files will not open and throw an "Expected a non-negative integer."
message upon opening. Note that the "MediaBox" field has negative
numbers (seen via opening the file via a text editor), but then we
compensate for that and the thumbnail still does not generate. Also,
when you open the file in Acrobat 5.0, you get a very quick message
that "The file is being repaired" and when you try to close the file,
you get a confirmation message to save changes.
File that generated a thumbnail:
A "bad" file that did not generate a thumbnail:
A file that was fixed after just opening and saving in Acrobat 5.0 and
generated a thumbnail:
from the log file:
ESP Ghostscript 7.05 (2003-02-05)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in --get--
PageCount --dict:1/1(L)-- Root
%interp_exit .runexec2 ...problem converting the postscript file to pdf using ghostscript
i have a post script file which has four pagees
three pages are in Potrait and the fourth is landscape
when i run command this command "gswin32c -q -dLOCALFONTS -dSAFER
-dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dAutoRotatePages=/None
-sOutputFile=c:\S100834431_GScript_6.pdf -dCompatibilityLevel=1.4 -c
..setpdfwrite -f C:\S100834431.ps"
it generates a pdf file i get the first three pages correct but the
fourth page which was landscape is not displayed properly
pls help me
...How to parse the log file to get useful information using perl or shell?
I have a very long log file like the below, how could I useful info I
need like this:
sr-204 Tec cache size:
"ls -l C:\Tivoli\lcf\dat\1\LCFNEW\Tmw2k\Tec\cache"
-rw-rw-rw- 1 0 0 54 Nov 01 23:53
Also is get every 3 lines just after every "Tec cache size" including
the "Tec cache size" line.
Or even could I get just include the host name and file size? Like
The log file like this:
DISSE0155I Distribution ID: `1278500431.264831...Just When I Was Getting Used To Using Using
I have a class Packet that contains a nested class Payload and an
I had gotten into the habit of writing:
so I could write:
I have done this... (gulp) in many, many .cpp files.
I tried out the new Visual C++ Express compiler from you-know-who on my
source code and got 1000's of error messages:
...\Packet\Packet.cpp(13) : error C2885: 'Packet::Payload': not a valid
using-declaration at non-class scope
What does the standard say? Is th...PDF to PCL using Ghostscript
I'm running into a problem converting a PDF file to PCL in a UNIX
environment using GhostScript. During my initial tests in Windows 2K,
I was able to do the conversion, and have the PCL format correctly,
but in the UNIX version something different is happening...
Page is formatted to print in landscape on 8.5" (612p) X 11" (792p)
In windows, the correct paper size comes out using the following
gswin32c -sDEVICE=ljet4 -sOutputFile=C:\test.pcl C:\test.pdf
Note that there's no specification of paper size in there at all, and
it works fine.
In Unix The following command line is executed using the EXACT SAME
gs -sDEVICE=ljet4 -SOutputFile=test.pcl -dBATCH -dQUIET -dNOPAUSE
The paper size that comes out here is A4 Legal. The pdf files are
EXACTLY the same, and I can't figure out what's going on here. I've
tried using the -g and -r switches as well, but that didn't seem to
Stu <firstname.lastname@example.org> wrote:
> In Unix The following command line is executed using the EXACT SAME
> gs -sDEVICE=ljet4 -SOutputFile=test.pcl -dBATCH -dQUIET -dNOPAUSE
> The paper size that comes out here is A4 Legal. The pdf files are
> EXACTLY the same, and I can't figure out what's going on here.
Try adding '-sPAPERSIZE=letter'. It sounds like the version of
Gho...How to use Ghostscript PDF Printer?
I've installed Ghostscript 8.50 and then added the ps2pdf printer to
the system (Win XP). What do I have to do now to print documents to
I guess I have to install another printer that produces the PS and
then "handles" it to the ps2pdf? Please help me a bit.
Thanks a lot :)
darn right wrote:
> I guess I have to install another printer that produces the PS and
> then "handles" it to the ps2pdf? Please help me a bit.
Yes. You just need to install a PostScript printer driver for any
printer, for example HP8000. Then you select print to file,
give a suitable...How to embed svg in pdf using postscript?
I would be very grateful if someone could help me with this. Please give me
an example or tell me were to search for an answer.
Not an easy task, but possible.
First you need to write a SVG interpreter in PS. Then embed the interpreter
and SVG stream into a PDF PostScript XObject. Then the resulting SVG/PS/PDF
object needs to be executed on a PDF renderer that also contains a PS engine
6.X Harlequin RIP).
Give yourself at least a man-year for this one.
If you have a trival example you could get simple SVG to execute in a day or
"roger eroom" <email@example.com> wrote in message
> I would be very grateful if someone could help me with this. Please give
> an example or tell me were to search for an answer.
Thanks for the answer. I've heard that the new PS language supports the
embedding of svg (just like for jpg). Actually what I'm trying to do is to
write a piece of PS code in framemaker that in the resulting pdf will embed
or link the pdf to the svg file. The acrobat reader 6.0 has a plugin
included and can easily read svg in pdf files. Someone has even created an
acrobat plugin that will embed svg but I cannot really control the position
of the svg on the pdf page with it...
"frank" <firstname.lastname@example.org> wrote in message
> Not an easy task, but possible.
> First you need to write a SV...postscript banner page using ghostscript
I have three print job environment variables I like to supply with
ghostscript command to convert a print banner template to dynamic banner
page file :
$printUserID, $printDocumentName and $printTimeStamp
How do I go about applying in gs command? Thanks!
...Printing Header information Using Postscript
Greetings to all.
i am struck with this requirement. can any one help me to solve the
i have a requirement to print some common information (like a header
in word) in all the pages. Is there any support available in
postscript to print the common header information. Do i need to add
the common header information in all the pages?
Thanks in advance
On Mar 13, 4:40 pm, "Dineshkumar" <vcdineshku...@gmail.com> wrote:
> Hi all,
> Greetings to all.
> i am struck with this requirement. can any one help me to solve the
> i have a requirement to print some common information (like a header
> in word) in all the pages. Is there any support available in
> postscript to print the common header information. Do i need to add
> the common header information in all the pages?
That is the most straightforward way to do it, if you can use a
scripting language like perl on your output postscript file. To do it
within postscript, you have to redefine the showpage operator. For
example, you'd insert the %%BeginSetup-%%EndSetup section shown below
into your postscript:
/oldshowpage /showpage load bind def
280 750 moveto
/Helvetica findfont 9 scalefont setfont
(Page heading here) show
} bind def
%%Page: 1 1
/Helvetica findfont 12 scalefont setfont
100 100 moveto (This is th...Can one get useful information from this?
When one executes a query with OCIStmtExecute, is there a way to tell
the *number* of rows affected by the statment? Can an example be
provided as to how to get the number of rows affected by an insert /
update or delete statement executed through the OCIStmtExecute?
On 31 Aug 2005 16:25:18 -0700, "milkyway" <email@example.com> wrote:
>When one executes a query with OCIStmtExecute, is there a way to tell
>the *number* of rows affected by the statment? Can an example be
>provided as to how to get the number of rows affected by an insert /
>update or delete statement executed through the OCIStmtExecute?
OCI_ATTR_ROW_COUNT statement handle attribute.
Andy Hassall :: firstname.lastname@example.org :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
...PDF 2 EPS using ghostscript
I'm trying to convert a PDF to EPS using the GhostScript. Does anyone know
if its possible to set the colorspace when doing so? It seems to default
to RBG, which of course does not help too much in the print world.
Warrick FitzGerald wrote:
> I'm trying to convert a PDF to EPS using the GhostScript. Does anyone know
> if its possible to set the colorspace when doing so? It seems to default
> to RBG, which of course does not help too much in the print world.
EPS generator in Ghostscript reduces everything to path, image, and
image mask in device color space. Device color spaces are: Gray, RGB,
and CMYK (RGB is the default). Device color space can be selected as:
<</ProcessColorModel /DeviceCMYK>> setpagedevice
You can generate an EPS from a PDF using Acrobat. (but not using Acrobat
Reader, and that may be all you have)
Adcom Graphics, Fairfield, California:
Electronic Prepress & Large Format Imaging
On Wed, 10 Sep 2003 20:29:17 +0000, Alex Cherepanov wrote:
> Warrick FitzGerald wrote:
>> I'm trying to convert a PDF to EPS using the GhostScript. Does anyone know
>> if its possible to set the colorspace when doing so? It seems to default
>> to RBG, which of course does not help too much in the print world.
> EPS generator in Ghostscript reduces everything to path, image, and
> image mask in device color space. Device color ...Attaching a file to a PDF using Ghostscript (or other)?
Hi all -
I'm trying to accomplish something that I thought might be fairly
straightforward, but to no avail so far. I'm using Ghostscript
(essentially just the ps2pdf bit I believe) to stitch together 2 PDFs
and some bookmarks into a single PDF.
In addition, I'd like to add the original native document to the PDF as
an attached file if possible.
This is my current gs command:
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=output.pdf
original.PDF indesign.PDF bookmark.ps
Does anyone know of a switch to gs to make this work or another program
to allow this to be done in an automated fashion? Running on Mac OS
> In addition, I'd like to add the original native document to the PDF as
> an attached file if possible.
> Does anyone know of a switch to gs to make this work or another program
> to allow this to be done in an automated fashion? Running on Mac OS
you should try pdftk, see http://www.accesspdf.com/pdftk/
Hope this helps.
Dipl.-Ing. Dirk Krause
Please use the web form in the line above to establish personal contact.
Do not use the e-mail address shown in the header lines, mails to this
address go into the electronic trash can. Thanks.
>>>>> "dmacdonald" =3D=3D dmacdonald <email@example.com> writes:
dmacdonald> ...pdf -> pcl using Ghostscript
I've heard it's possible to put a PDF through Ghostscript and get PCL
out the other end.
I have a couple of questions:
1) Would this work in a batch environment i.e. I use ksh under posix
to process spool files via a daemon. I know I can use GS to process
postscript in batch so the next step is PDF.
2) Do I need to install any type of drivers on my printers? We are
using HP9000 and HP8150 printers.
I read somewhere that you can only do the conversion from PDF to PCL
when you open a GSV window and look at it online... I can't use this if
its a restriction.
"printdude19...Using Ghostscript to Scale PDF Files
I need to scale PDF files by a certain percentage whilst ripping to a
raster format like tiffg4 or pxl color. If I attempt to convert the
PDF (841mm x 594mm) directly to the raster format it doesn't scale (or
rotate or shift):
-c "<</Policies <</PageSize 5>> >> setpagedevice "
-c "<< 0.5 0.5 scale -90 rotate -2384 0 translate >> setuserparams"
If I first convert the PDF to EPS using epswrite then use a simliar
command file to the above to create the resultant tiffg4 file it
*************************MyCommand1.CMD - PDF-
*************************MyCommand2.CMD - EPS-
-c "<</Policies <</PageSize 5>> >> setpagedevice "
-c "<< 0.5 0.5 scale -90 rotate -2384 0 translate >> setuserparams"
Not too bad performance-wise for the B&W to tiffg4 but when convertin...Trying to get some useful information out of VHDL with Tcl
In an attempt to extract interconnection information from VHDL files I
started using regular expressions, but the nature of VHDL make those
regular expressions large and quite difficult to maintain and extend
as I fill in new features. Has anybody a better idea than to use
regexps for parsing for such a difficult language?
On Tue, 2 Dec 2008 04:55:28 -0800 (PST), Svenn Are Bjerkem wrote:
>In an attempt to extract interconnection information from VHDL files I
>started using regular expressions, but the nature of VHDL make those
>regular expressions large and quite difficult to maintain and extend
>as I fill in new features.
Yes, it's a loser. Stripping away all the comments makes
things a tad easier, but it's still not appropriate RE-fodder.
The received wisdom here on c.l.t is clearly opposed to the
use of REs for serious parsing applications.
> Has anybody a better idea than to use
>regexps for parsing for such a difficult language?
Have you looked at GHDL? You might be able to steal the VHDL
parser from that. I don't know whether it is able to write out
the syntax tree in a form that could easily be sucked into a
Tcl script, though.
The practical reality is that you will do far better to load
your VHDL model into a simulator, and use its foreign-language
interface (FLI, VHPI or what-have-you) to traverse the connectivity
of instantiated entities. If you consider all the complications
that can be introduced by generics, ...get summary information using PROC SQL
I have a question about how to combine two datasets and get some
I have a monthly dataset (data1) which consists of four variables: the
stock ID, current month, return in current month, and holding period
for each stock(HP). The HP is, by the way, different across stocks
across months. Now, for data1, I want to get the rolling return for
each stock in each month for previous HP-months. The complete monthly
return data are in another dataset (data2).I tried the following code
but failed. Could anybody please help me?
create tabl...PDF PDF PDF
For anyone struggling to figure out how to create a PDF in SWX it's pretty
simple but you may have to have the Bluebeam version of swx
FIRST go to Tools>Options and check "Save as PDF"
Then you can save them right from the save as dialog.
Maybe I'm the only dumbass that could't figure that out! ;0) But it was in
help under "PDF"
An easier way is to download a program from www.pdf995.com that "prints" you
files to a PDF foramat. This program works with SW and any other program
you use to print with.
"3d" <jmiller at marvelindustri...How to use wget to get information of a jsp page
I have a jsp page that takes one parameter say: http://www.a.com/a.jsp?id=1and use different id to generate different pages,now I want to get the results from that and I use>> wget "http://www.a.com/a.jsp?id=1"unfortunately, I can only get the source code of a.jsp, which isuseless to me.Is there any other methods for doing this? Yang wrote:> I have a jsp page that takes one parameter say: http://www.a.com/a.jsp?id=1> > and use different id to generate different pages,> now I want to get the results from that and I use>>> wget "http://www.a.com/a.jsp?id...Hackers use Google to get private information
=BB Have your say
=BB Subscribe to Archivestuff
Hackers use Google to get private information
26 May 2006
By SOPHIE NEVILLE
Sensitive government information and confidential documents are readily
accessible through Internet search engines, new research has shown.
A Massey University study has found that hacking attacks via the
popular search engine Google are on the rise and New Zealand sites are
less secure than those in the United States and Australia.
Information systems senior lecturer Ellen Rose said supposedly private
information was easy to find via Google. Businesses and government
departments needed to put more effort into protecting their
"Google was intended to help you find things on the Web, but you can
find all sorts of things that perhaps people don't want you to find."
Researchers developed a computer programme that ran 170 queries a day
for three months against the Google database, looking at sites in New
Zealand, Australia, the US and the Czech Republic.
It found sensitive data was easier to find than before and New Zealand
sites were particularly vulnerable. Half the queries returned sensitive
information, but some was available for only a short time, Dr Rose
She would not say what was discovered or from where, but said Google
allowed hackers to find vulnerable websites.
> Hac...tool that shows the same PDF coordinates as ghostscript uses
The PDF format takes the bottom left corner of a document to be the
origin (0,0). This makes it difficult to get coordinates for cropping
because Ghostscript's /CropBox command uses this coordinate
system. Consequently, the display command cannot easily be used to get
Is there a graphical tool that will directly give the /CropBox
coordinates for a selected region?
BTW, coordinates from the display command cannot be translated either,
because it finds a different page area geometry than the pdfinfo
In article <firstname.lastname@example.org>,
> The PDF format takes the bottom left corner of a document to be the
> origin (0,0). This makes it difficult to get coordinates for cropping
> because Ghostscript's /CropBox command uses this coordinate
Ghostscript doesn't have a /CropBox command. It does have -dUseCropBox,
and that obviously uses the PDF user space co-orindates as given by the
> Is there a graphical tool that will directly give the /CropBox
> coordinates for a selected region?
A 'selected region' ? CropBox is a per page entry in the page
dictionary, so a 'selected region' doesn't mean much.
You can use pdf_info.ps, in the Ghostscript 'toolbin' directory, teh
usage is at the top of the file, here it is anyway:
% usage: gs -dNODISPLAY -q -sFile=____.pdf [-dDumpMediaSizes] [-
dDum...getting pdf file in palm using linux.
this is a long shot but does anyone know how to get a pdf file into a palm
"tru178" <email@example.com> wrote in
> this is a long shot but does anyone know how to get a pdf
> file into a palm from linux?
Acrobat Reader for Palm. On the Adobe website.
Stan Gosnell <GLSNightPilot@yahoo.com> writes:
> "tru178" <firstname.lastname@example.org> wrote in
>> this is a long shot but does anyone ...Adding pictures to PDF file using GhostScript
is it possible with GhostScript to add pictures into a PDF file (on fixed
positions)? And if it is, how?
Marc Muehlfeld wrote:
> is it possible with GhostScript to add pictures into a PDF file (on
> fixed positions)? And if it is, how?
Use GhostScript to convert the PDF into single page .eps files and then
write a .ps file to use those as a page background and add your photos
...HTML to PDF/PostScript using style sheets?
Can anyone please recommend me a package (either free or commercial) for
MacOS X which will convert HTML to PostScript _including_ processing the
style sheets correctly?
All the free ones I'm aware of don't make any use of style sheets, and so
you don't get to make the output look particularly pretty. As I'm developing
a browser-based reservation system for a travel company, we want to be able
to print off letters, vacancy lists and whatnot for posting to customers and
the most straightforward way is (we hope) to write HTML files and then
convert to PostScript ...How to get user information using Java API?
I have JAVA program that is executed on a remote machine to
authenticate a user using DIIOP with username/password using the
NotesFactory.CreateSession method against a 7.0.2 Domino Server
running on a remote machine. I need to retreive the information
(phone, email etc) for this user. What API can I use?
PS: The only method I found so far is to open the db names.nsf and use
"People" view to get all the entries and use FTSearch to match the
username - obviously this is not ideal. I could not filter the entries/
documents using a key with the loginn...