With the installation of the latest version of the Mentor software on the HP machines, the option for printing directly to a pdf is present. This needs to get set up. It is basically the same procedure as on linux, but paths to files have changed.

-Make sure ghostscript is installed

-Location for printer stuff: /net/sw/mgc_hpux/printer/export_pdf

-Copy the export_pdf directory from impulse to any other machine that needs it.

-Copy the following files to the above location:
cp $MGC_HOME/shared/pkgs/pdf_export/templates/mgc_pdf_config .
cp $MGC_HOME/shared/pkgs/pdf_export/templates/mgc_pdf_fis .
cp $MGC_HOME/shared/pkgs/pdf_export/templates/pet .

-Make sure mgcgs and mgcgs.ixn have execute permissions (and yes, can use mgcgs.ixn here because it’s just a script). I could rename it to mgcgs.hpu, but I want to remember that this is the same program that’s running on linux.

Edit /usr/local/share/ghostscript/7.07/lib/Fontmap.GS and add the following to the end of the file:

% Mentor fonts
/stroke-bs (mgc_stroke_bs.afm);
/mgc-v1-stroke (mgc-v1-stroke.afm);
/stroke (mgc_stroke.afm);
/stroke-bs (mgc_stroke_bs.pfa);
/mgc-v1-stroke (mgc-v1-stroke.pfa);
/stroke (mgc_stroke.pfa);

-Set MGC_GS_PATH=/net/sw/mgc_hpux/printer/export_pdf

-Set MGC_PDF_OPTIONS=/net/sw/mgc_hpux/printer/export_pdf

-Set MGC_PLOT_OPTIONS=/net/sw/mgc_hpux/printer (location of pet file)
-Set AMPLE_PATH=$AMPLE_PATH:$MGC_PDF_OPTIONS

-In linux, the following was added to the pet file. In HPUX, it won’t work if this is added, so leave it out.

extern PDFExportAppTable = [
“export pdf”,
“$MGC_PDF_OPTIONS/mgc_pdf_fis”,
“.pdf”,
“”,
“”
];