Skip to content

Instantly share code, notes, and snippets.

@kurotori
Last active August 22, 2024 14:31
Show Gist options
  • Save kurotori/5654f87e6eca2a5b3137755c53e58676 to your computer and use it in GitHub Desktop.
Save kurotori/5654f87e6eca2a5b3137755c53e58676 to your computer and use it in GitHub Desktop.
SVG con textos dinámicos
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="210mm"
height="297mm"
viewBox="0 0 210 297"
version="1.1"
id="svg8"
inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
sodipodi:docname="base_ID_imprimible.svg">
<defs
id="defs2" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.98994949"
inkscape:cx="398.09195"
inkscape:cy="795.77922"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1280"
inkscape:window-height="966"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1" />
<metadata
id="metadata5">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Capa 1"
inkscape:groupmode="layer"
id="layer1">
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="6.1775808"
y="14.876457"
id="text3715"><tspan
sodipodi:role="line"
id="tspan3713"
x="6.1775808"
y="14.876457"
style="stroke-width:0.26458332;font-size:6.35px;-inkscape-font-specification:'sans-serif Bold';font-family:sans-serif;font-weight:bold;font-style:normal;font-stretch:normal;font-variant:normal">ID de Respaldo:</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-weight:normal;font-size:10.58333302px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.26458332"
x="6.1775808"
y="30.049231"
id="text3719"><tspan
sodipodi:role="line"
id="tspan3717"
x="6.1775808"
y="30.049231"
style="stroke-width:0.26458332;font-size:6.35px;-inkscape-font-specification:'sans-serif Bold';font-family:sans-serif;font-weight:bold;font-style:normal;font-stretch:normal;font-variant:normal">
</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 5.9766393,38.550365 H 204.02336"
id="path11"
inkscape:connector-curvature="0" />
</g>
</svg>
# Creación de ID imprimible
touch "$ruta_local/config/ID.svg"
cat encabezado_ID.txt > "$ruta_local/config/ID.svg"
echo "${id}" >> "$ruta_local/config/ID.svg"
cat final_ID.txt >> "$ruta_local/config/ID.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment