Finally, Mentor Graphics has a way to print directly to a pdf file. It’s a bit complicated, but it does work. The details are in TechNote mg52323, but here’s what’s needed.
-Install Ghostscript
-Create a central location for configuration files, here, it’s /net/sw/mgc/printer. So $MGC_PDF_OPTIONS=/net/sw/mgc/printer/export_pdf (create export_pdf in next step)
-Put this directory (export_pdf) in the above location.
-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
-Edit /usr/share/ghostscript/7.05/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/printer/export_pdf
-Set MGC_PDF_OPTIONS=/net/sw/mgc/printer/export_pdf
-Edit pet file and add this:
extern PDFExportAppTable = [
“export pdf”,
“$MGC_PDF_OPTIONS/mgc_pdf_fis”,
“.pdf”,
“”,
“”
];