doc updates about print command

This commit is contained in:
stefan schippers 2023-07-13 14:26:42 +02:00
parent cf675be805
commit ff66a48df0
3 changed files with 8 additions and 7 deletions

View File

@ -497,6 +497,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
<li><kbd> abort_operation</kbd></li><pre>
Resets UI state, unselect all and abort any pending operation </pre>
@ -936,12 +937,12 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns"
Start a GUI placement of a polygon </pre>
<li><kbd> preview_window create|draw|destroy [winpath] [file]</kbd></li><pre>
Used in fileselector to show a schematic preview.</pre>
<li><kbd> print png|svg|ps|pdf img_file img_x img_y [x1 y1 x2 y2]</kbd></li><pre>
<li><kbd> print png|svg|ps|pdf|ps_full|pdf_full img_file [img_x img_y] [x1 y1 x2 y2]</kbd></li><pre>
Export current schematic to image.
img x y size xschem area to export
0 1 2 3 4 5 6 7 8 9
xschem print png file.png 400 300 [ -300 -200 300 200 ]
xschem print svg file.svg 400 300 [ -300 -200 300 200 ]
xschem print png file.png [400 300] [ -300 -200 300 200 ]
xschem print svg file.svg [400 300] [ -300 -200 300 200 ]
xschem print ps file.ps
xschem print pdf file.pdf
xschem print ps_full file.ps

View File

@ -2546,12 +2546,12 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
}
/* print png|svg|ps|pdf img_file img_x img_y [x1 y1 x2 y2]
/* print png|svg|ps|pdf|ps_full|pdf_full img_file [img_x img_y] [x1 y1 x2 y2]
* Export current schematic to image.
* img x y size xschem area to export
* 0 1 2 3 4 5 6 7 8 9
* xschem print png file.png 400 300 [ -300 -200 300 200 ]
* xschem print svg file.svg 400 300 [ -300 -200 300 200 ]
* xschem print png file.png [400 300] [ -300 -200 300 200 ]
* xschem print svg file.svg [400 300] [ -300 -200 300 200 ]
* xschem print ps file.ps
* xschem print pdf file.pdf
* xschem print ps_full file.ps

View File

@ -5847,7 +5847,7 @@ proc build_widgets { {topwin {} } } {
-command "xschem saveas {} symbol" -accelerator {Ctrl+Alt+S}
# added svg, png 20171022
$topwin.menubar.file.menu add command -label "PDF/PS Export" -command "xschem print pdf" -accelerator {*}
$topwin.menubar.file.menu add command -label "PDF/PS Export Full" -command "xschem print pdf_full" -accelerator {*}
$topwin.menubar.file.menu add command -label "PDF/PS Export Full" -command "xschem print pdf_full"
$topwin.menubar.file.menu add command -label "Hierarchical PDF/PS Export" -command "xschem hier_psprint"
$topwin.menubar.file.menu add command -label "PNG Export" -command "xschem print png" -accelerator {Ctrl+*}
$topwin.menubar.file.menu add command -label "SVG Export" -command "xschem print svg" -accelerator {Alt+*}