• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Scripting - TCL
  3. How to convert DSN to PDF with tcl?

Stats

  • State Verified Answer
  • Replies 2
  • Subscribers 13
  • Views 142
  • Members are here 0
More Content

How to convert DSN to PDF with tcl?

Gelzone
Gelzone 3 days ago

In the OrCAD Capture CIS 23.1, I found there are 2 features that can make the DSN file to PDF format:

1. File > Print

2. File > Export > PDF

Both 2 meet my requirement, and I want to know if I can use tcl to make the process automatic, including setup the config like printer, orientation, printing mode, output path...

  • Cancel
  • Sign in to reply
  • TechnoBobby
    +1 TechnoBobby 3 days ago

    Hi Gelzone ,

    Yes, you can automate the PDF export process. Below is an example script you can customize:

    namespace eval ::ExportPDF {}
    package require OrHandlerPDFExport

    proc ::ExportPDF::StartPDFExport {} {

    set FileName "sample.pdf"
    set lOutputDir "c:/Cadence"
    set lfirst "{{"
    set lLast "}}"      

    set var [ concat \"outputDirectory\"\: \"$lOutputDir\" \,\"outputPdfFile\"\: \"$FileName\" {,"postscriptFilePath":"OrCADPS_24.1","PStoPdfConverter":"Ghostscript 64 bit / equivalent","PdfExcludeProp":"Line Style!!Line Width!!Color!!Location X-Coordinate!!Location Y-Coordinate","PStoPdfCommand":"{c:/gs/gs10.02.1/bin/gswin64c.exe} -sDEVICE=pdfwrite -sOutputFile=$::capPdfUtil::mPdfFilePath -dBATCH -dNOPAUSE $::capPdfUtil::mPSFilePath","commandIndex":2,"printingMode":"0","orientation":"1","createPdfPropertiesFile":"0","createNetAndPartBookmarks":"1","PaperSizeIndex":0}]

    set var1 [concat $lfirst $var $lLast]
    eval "::OrHandlerPDFExport::printPDF $var1"  
    }

    ::ExportPDF::StartPDFExport

    For additional details, refer to below article on ASK portal:
    Title: How can I export my design to PDF using a Tcl script?
    URL: https://support.cadence.com/apex/ArticleAttachmentPortal?id=a1O0V000007MgF1UAK&pageName=ArticleContent

    Hope it helps!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Gelzone
    0 Gelzone 9 hours ago in reply to TechnoBobby

    Test OK, thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information