- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Community,
Does anyone know how to programmatically set the option to "Capture fonts used in the drawing" for PDF files?
I have a LISP routine that creates a DXF and a PDF from a DWG.
;; PLOT TO PDF
;; plot settings
(setq
strOutDev "AutoCAD PDF (Smallest File).pc3"
strPaperSize "ANSI A (8.50 x 11.00 Inches)"
strPlotRot "Landscape"
strPlotStyle "Monochrome"
strFileName (strcat (getvar 'dwgprefix) (vl-filename-base (getvar 'dwgname)))
) ;_setq
;; set PDF filename
(setq strFileName (strcat (vl-filename-directory a) ;; then build filename without extension
"\\"
(vl-filename-base a)
)
) ;_setq
;; Perform a detailed plot configuration
(command "_.PLOT" "Y")
;; Detail answers
(command "Model" ;;Enter a layout name
strOutDev ;;Enter an output device name
strPaperSize ;;Enter paper size
"I" ;;Enter paper units
strPlotRot ;;Enter drawing orientation
"N" ;;Plot upside down
"D" ;;Enter plot area, Display
"F" ;;Enter plot scale or[Fit]
"C" ;;Enter plot offset or [Center]
"Y" ;;Plot with plot styles
strPlotStyle ;;Plot style
"N" ;;Plot lineweights
"A" ;;Enter shade plot setting
(strcat strFileName ".PDF") ;;Write plot to file
"N" ;;Save change to page setup
"Y" ;;Proceed
) ;_command
When plotted with the LISP routine, certain fonts do not display well in Adobe products. In our, case it is Calibri and certain symbols such as the diameter symbol.
This apparently is a known issue:
When plotted with the PLOT dialog box, the fonts are included and appear correct when viewed in Adobe products.
When plotted with AutoLISP, the "capture" option seems to be ignored.
I hope to find a way to set the "capture" option when plotting with AutoLISP. Perhaps Visual LISP can access these settings.
Thank you for your time and attention. I look forward to your replies.
Regards,
Jerry
CAD Administrator
Using Inventor 2022
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
Solved! Go to Solution.