找回密码
 注册
查看: 267|回复: 5
打印 上一主题 下一主题

导出PDF 的skill 函数或方法?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
 楼主| 发表于 2025-3-19 17:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
有没有导出PDF 的skill 函数或方法?一键导出顶层和底层丝印和设定的其他层丝印,底层丝印自动翻转。

点评

有, 一鍵要自己寫SKILL, 但"現在"不流行PDF, 因為PDF是死的, 而 HTML 帶BOM, 才是新的, 重點不用特殊軟體, 能開網頁的機器就能看.  发表于 2025-3-19 18:23

该用户从未签到

2#
 楼主| 发表于 2025-3-20 09:25 | 只看该作者
找到个文件,但不知道这个命令在哪里用,用什么函数调用

  

  1.     Command line arguments for pdf_out.
  2.         Utility to export Allegro data to PDF Format.

  3.     pdf_out <design_name> [-slBCrhpPtUnmiveSx] [-o output_name]
  4.          [-f <artfilm_name1>  -f <artfilm_name2> ...]
  5.          [-c <config_file_name>] [-u user_pass] [-w perm_pass]

  6.     -o  Output file name.  Default: <design_name>.pdf

  7.         If the global filename affixes are set the resultant output name
  8.         would be:

  9.             <prefix>_<output_file_name>_<suffix>.pdf

  10.     -c  Configuration file used to control paper size, margins, scale factor,
  11.         and export extra properties for Component and Net.

  12.     -f  Art film name. Default is to export all films.
  13.               
  14.     -u  User password to open the PDF file.

  15.     -w  Permmision password to open and edit PDF file

  16.     -s  Create separate PDF file for each art film, Default is to generate
  17.         one single PDF file for all the exported art films.

  18.         The output file name for each film would be:

  19.           <output_file_name>_<film_name>.pdf  

  20.         or

  21.           <prefix>_<output_file_name>_<film_name>_<suffix>.pdf

  22.     -l  List artwork films in the board.

  23.     -p  Pad filled

  24.     -P  Create size optimized PDF file for printing, no design data exported   

  25.     -C  Display component by RefDes without package name

  26.     -B  Create PDF file in black and white. Default to use the design colors.

  27.     -r  Export board/symbol outlines, refdes as well if pins exported

  28.     -t  Trace filter

  29.     -h  Hole filter

  30.     -a  Header/Footer filter

  31.     -g  Drawing origin filter

  32.     -U  No shape fill

  33.     -x  Vector text and invisible text string for search.   

  34.     Meta Data Options:

  35.         -n  Net Data Tree
  36.         -m  Component Data Tree
  37.         -T  TestPoint Tree and testPoint outline
  38.         -i  Pin   property
  39.         -v  Via   property
  40.         -e  Cline property
  41.         -S  Shape property
  42.       
  43.       
  44.     REQUIRED ARGUMENTS

  45.             <design_name>  Name of the design file.

  46.     Example 1: Create one PDF File to export all art films, and export board
  47.                outline, symbol outline, refdes as well if symbol pins are
  48.                exported
  49.                             
  50.                pdf_out test.brd -o test -r

  51.     Example 2: Create a PDF File with configuration file:

  52.                pdf_out test.brd -o test -c pdf_out_config.txt

  53.          Note: The format of object property parameter is:
  54.                Object_Type/Property_Name, one entry per line.

  55.          For example:

  56.                 Component/IDF_OWNER
  57.                 Net/DIFFP_PHASE_TOL_DYNAMIC
  58.                 Net/MAX_VIA_COUNT
  59.                 page_setup/unit=Inch or page_setup/unit=Millimeter
  60.                 page_setup/paper_size_width=8.500
  61.                 page_setup/paper_size_height=11.000
  62.                 page_setup/margin_left=0.500
  63.                 page_setup/margin_right=0.500
  64.                 page_setup/margin_top=0.500
  65.                 page_setup/margin_bottom=0.500
  66.                 page_setup/scale_factor=fit_page or page_setup/scale_factor=1.50
  67.                 page_setup/header_footer_text_size_width=0.048
  68.                 page_setup/header_footer_text_size_height=0.048
  69.                 page_setup/orientation=landscape or page_setup/orientation=portrait   

  70.     Example 3: Create one PDF File to export two art films ?TOP and BOTTOM:

  71.                pdf_out test.brd -o test -f TOP -f BOTTOM

  72.     Example 4: Create separate PDF Files for each exported art film:

  73.                pdf_out test.brd -o test -f TOP -f BOTTOM -s

  74.     Example 5: Create PDF File to export the art films "TOP" and "BOTTOM", and
  75.               export meta data for component, net, pin, via, cline, shape:

  76.                pdf_out test.brd -o test -f TOP -f BOTTOM -m -n -i -v -e -S



复制代码

点评

這指令分兩種情況, DOS 下, 和 allegro command 下 (非skill 下.), 多看說明. 你貼的是 DOS下.  发表于 2025-3-20 13:06
  • TA的每日心情
    开心
    2025-5-28 15:23
  • 签到天数: 61 天

    [LV.6]常住居民II

    3#
    发表于 2025-4-1 17:39 | 只看该作者
    本帖最后由 陛下万年 于 2025-4-1 17:41 编辑

    也可以自己录一个脚本呀,Allegro有这个功能呀。没找到skill的前提下,有些skill也是加密了的。有源码就最好
  • TA的每日心情
    开心
    2025-5-28 15:32
  • 签到天数: 27 天

    [LV.4]偶尔看看III

    4#
    发表于 2025-4-2 11:31 | 只看该作者
    https://www.eda365.com/thread-771448-1-1.html
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-5-29 04:53 , Processed in 0.078125 second(s), 24 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

    快速回复 返回顶部 返回列表