Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

Dropping PDF at the Printer

C.Andersson

New member
<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
 
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
 

Sponsor

Articles From 3DCAD World

Back
Top