🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
6 messages
6 total messages Started by dupas gwennhael Fri, 26 Sep 2003 15:08
How not to have "print into a file" dialog box
#875
Author: dupas gwennhael
Date: Fri, 26 Sep 2003 15:08
5 lines
1016 bytes
I have installed Adobe Postscript 3 in order to have a printer which print into a postscript file on Windows 98.
When i want to print, i would like not to have the "print into a file" dialog box. I would like the Adobe postscript printer to print always into the same file in the same location.
How can I do that ?

Thanks.
Re: How not to have "print into a file" dialog box
#876
Author: SaGS
Date: Sun, 28 Sep 2003 06:10
23 lines
2260 bytes
"dupas gwennhael" <member@adobeforums.com> wrote in message
news:2ccd8bc8.-1@webx.la2eafNXanI...
> I have installed Adobe Postscript 3 in order to have a printer which print
into a postscript file on Windows 98.
> When i want to print, i would like not to have the "print into a file"
dialog box. I would like the Adobe postscript printer to print always into
the same file in the same location.
> How can I do that ?
>
> Thanks.

This question is off-topic on this forum. Anyway, here are two solutions:

(1) Set the printer's port to a fixed (disk) file. With Win98, this can be
done from the "Details" tab in the printer's property sheet. Choose "Add
port"/ "Other"/ "Local port"/ when prompted specify the complete file name
you want to print to (with drive letter and path).

(2) If you are writing some software and want to print to a file, use the
lpszOutput menmber of the DOCINFO structure passed to StartDoc(). The
ability to do this depends on your programming language/ compiler/ method
used to print: no problem with C/C++ using GDI calls to print, but you're
out of luck with VB or if using some external object to do the printing.
Re: How not to have "print into a file" dialog box
#877
Author: Vorms
Date: Mon, 29 Sep 2003 14:09
23 lines
1515 bytes
Hello,
I try to program an application in Visual C++ using DOCINFO structur to tell the driver where to put the pdf resulting file.
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.

Is any body can help me ?

Thanks a lot in advance.

Thierry Vorms
tvorms@autodose.ch

exemple

DOCINFO di;
::ZeroMemory (&di, sizeof (DOCINFO));
  di.lpszDocName = strTitle;
  char path[1000];
  strcpy(path, "C:\\MTM2002\\data\\[pdf]\\short.pdf");

di.lpszOutput = (LPCTSTR)path;
 // di.lpszOutput = NULL;
    di.cbSize = sizeof (di);
Re: How not to have "print into a file" dialog box
#879
Author: 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).
Re: How not to have "print into a file" dialog box
#883
Author: Vorms
Date: Fri, 03 Oct 2003 09:15
12 lines
1103 bytes
Hello,
thank you for your explanation.
I dont'have the adobe sdk, and I can't download it because i don't have money to buy it...

Can you explain me how to do for having a pdf file where I need ?

If you want you can directli send me a mail at
tvorms@autodose.ch

Thank you in advance.

P.S Can I use an other Adobe Driver that make pdf file directli ?
Re: How not to have "print into a file" dialog box
#886
Author: SaGS
Date: Mon, 06 Oct 2003 08:51
17 lines
2033 bytes
- Some of the Acrobat 6 SDK can be downloaded for free (don't know about
those on Distiller). You still need to create a "web account" to download
the free stuff.
- You may already have some of the documents on the Acrobat 6 CD, take a
look there. I don't have v6 yet, but I would expect Distiller command-line
parameters to be documented there.
- I think the Acrobat 5 SDK is still available, and it is (was?) free. Hope
v6 is enough backwards compatible with v5 for your needs...
More than this, sorry, I can't help.

About another printer to create PDF directly: this was PDFWriter, now
(version 6) gone if I undestood correctly. Maybe from another vendor...
However, if that "other vendor" uses a mechanism similar to Distiller
(special port/ etc, so the driver does not create PDF natively), you will
have the same problem: once you set the output port to a file, that file
will be in driver-specific format (usually PostScript), and you will need
another app to convert that format to PDF.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads