Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropping PDF at the Printer

  • Thread starter Thread starter C.Andersson
  • Start date Start date
Status
Not open for further replies.
C

C.Andersson

Guest
<DIV =postmsg minmax_bound="true">
Hello everyone, and thank god its finally friday
smile.png
<BR minmax_bound="true"><BR minmax_bound="true">I would like to this: After i
 
if your printer supports pdf-format you can add following line to your print command:


copy %1 \\qbpki1\kip2003\auto\filter02


replace the blue text with your printserver adress.


This doesnt work with all printers though.
 
ankarl said:
if your printer supports pdf-format you can add following line to your print command:


copy %1 \\qbpki1\kip2003\auto\filter02


replace the blue text with your printserver adress.


This doesnt work with all printers though.


Alright, i
 
It just struck me that you might be using the "out-of-the-box" pdf creator in Pro/E, not familiar with how that one works.


I use Ghostscript to cretae PDF and has defined a pdf printer.
The .pcf file looks like this:


plotter POSTSCRIPT
paper_size_allowed A0 A1 A2 A3 A4
rotate_plotting NO default
button_name Adobe Acrobat PDF
button_help Acrobat PDF File Conversion
plot_drawing_format YES default
plot_segmented NO default
plot_roll_media NO default
plot_handshake NO default
plot_label NO default
create_separate_files yes default
plot_with_panzoom no default
pen_table_file g:\prog\locappl\proe\prolib\plotters\pen_kip_laser.pnt


allow_file_naming YES
plot_name NO
interface_quality 3 default
plot_destination file_and_printer default
plotter_command G:\Prog\locappl\proE\scripts\make-pdf.bat
plot_sheets all default
paper_outline NO default
plot_clip NO default
plot_area NO default
delete_after_plotting yes


plot_translate 0 0 mm
plot_scale 1


and the plot command file:


@echo off
set path=C:\gs\gs8.11\lib;%path%
set path=C:\gs\gs8.11\bin;%path%
rem ** Get the plot file name and location from the command line.
set INNAME=%1


rem ** Change the .plt (Change to .ps if you are using that extension) to .pdf for the output.
set OUTNAME=%INNAME:.plt=.pdf%


rem ** Start Ghostscript
rem ** For NT this is setup in: Control Panel + System + Enviroment + path.
call C:\gs\gs8.11\lib\ps2pdf %INNAME% %OUTNAME%


rem ** Delete the original plot file.
del %INNAME%
rem ** Move the file to a release directory now.
copy %OUTNAME% j:\pdf
del %OUTNAME%



This is where you can add a line that also copies the file directly to a printer
 
ankarl said:
It just struck me that you might be using the "out-of-the-box" pdf creator in Pro/E, not familiar with how that one works.


I use Ghostscript to cretae PDF and has defined a pdf printer.
The .pcf file looks like this:


plotter POSTSCRIPT
paper_size_allowed A0 A1 A2 A3 A4
rotate_plotting NO default
button_name Adobe Acrobat PDF
button_help Acrobat PDF File Conversion
plot_drawing_format YES default
plot_segmented NO default
plot_roll_media NO default
plot_handshake NO default
plot_label NO default
create_separate_files yes default
plot_with_panzoom no default
pen_table_file g:\prog\locappl\proe\prolib\plotters\pen_kip_laser.pnt


allow_file_naming YES
plot_name NO
interface_quality 3 default
plot_destination file_and_printer default
plotter_command G:\Prog\locappl\proE\scripts\make-pdf.bat
plot_sheets all default
paper_outline NO default
plot_clip NO default
plot_area NO default
delete_after_plotting yes


plot_translate 0 0 mm
plot_scale 1


and the plot command file:


@echo off
set path=C:\gs\gs8.11\lib;%path%
set path=C:\gs\gs8.11\bin;%path%
rem ** Get the plot file name and location from the command line.
set INNAME=%1


rem ** Change the .plt (Change to .ps if you are using that extension) to .pdf for the output.
set OUTNAME=%INNAME:.plt=.pdf%


rem ** Start Ghostscript
rem ** For NT this is setup in: Control Panel + System + Enviroment + path.
call C:\gs\gs8.11\lib\ps2pdf %INNAME% %OUTNAME%


rem ** Delete the original plot file.
del %INNAME%
rem ** Move the file to a release directory now.
copy %OUTNAME% j:\pdf
del %OUTNAME%



This is where you can add a line that also copies the file directly to a printer


I use in ProE W3 the "Save object in active window to PDF"-button atm, BUTi do use FreeDistand GhostScript just to make PDF's. But i
 
Does your plotter have more than A0 size?


Then maybe a little help on the way is to add "paper_size_allowed A0 A1 A2 A3 A4" to your .pcf instead of locking it to only A0 as you did with the line "paper_size A0 default"
 
ankarl said:
Does your plotter have more than A0 size?


Then maybe a little help on the way is to add "paper_size_allowed A0 A1 A2 A3 A4" to your .pcf instead of locking it to only A0 as you did with the line "paper_size A0 default"


Yes ofcourse, just took my "not-updated"-pcf. But i do get some of your pcf-file, i just dont understand the stuff that under command like @ echo off etc. And the plotter_command i
 
What is that Ghostscript explain me?
 
Asho Pulsar said:
What is that Ghostscript explain me?


In short terms,


a very easy, reliable and free way of creating PDF's
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top