🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.postscript.programming
Article #879

Re: How not to have "print into a file" dialog box

#879
From: SaGS
Date: Tue, 30 Sep 2003 06:56
18 lines
2004 bytes
<Vorms@adobeforums.com> wrote in message news:2ccd8bc8.1@webx.la2eafNXanI...
> ...
> If I don't use the lpszOutput field the pdf file is producted in the
default path and it is ok.
> When I set the field lpszOutput the file is producted in the right path
but the file is corrupted.
> ...

You don't give enough details, but I will assume you print using the
"Acrobat Distiller" PRINTER driver (renamed to "Adobe PDF" in v6, I think).
This driver does not produce PDF directly, it produces PostScript. The port
the driver is connected to sends this PostScript code to Distiller
automatically, so you end up with a PDF file. If you change the port to a
file, that file contains the driver's output, that is PostScript code. You
have to explicitely convert this to PDF, for example using the Acrobat
Distiller APPLICATION via command-line or Automation (since your platform is
Win32). Details on this step are in the Acrobat SDK (note: your program will
be able to fully control the PDF file's name and location).
Technical Details
Message-ID: <00AA2B9AD0A81A6675CB43A966D40DF3@in.webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccd8bc8.-1@webx.la2eafNXanI> <2ccd8bc8.1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10c61a,cface6c541b188c2
X-Google-Attributes: gid10c61a,public
X-Google-ArrivalTime: 2003-09-30 00:08:07 PST
From: SaGS@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.postscript.programming
Subject: Re: How not to have "print into a file" dialog box
Message-ID: <00AA2B9AD0A81A6675CB43A966D40DF3@in.webx.la2eafNXanI>
Date: Mon, 29 Sep 2003 23:56:23 -0700
References: <2ccd8bc8.-1@webx.la2eafNXanI> <2ccd8bc8.1@webx.la2eafNXanI>
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit