Hi, I've upgraded to Inkscape v1.0 on Windows 10.
Using the command-line, as follows:
inkscape.exe --export-area-page --pdf-page=1 --export-text-to-path --export-background=ffffff --export-background-opacity=0.0 --export-plain-svg --export-overwrite --export-type=svg --export-filename=sample_file.svg sample_file.pdf
What I found out is that, if I run this command several times, within 6-10 attempts, the output SVG will be in different units.
Sometimes it will be in points (pt), for example, a few lines from the <svg> node:
<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:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="sample_file.pdf" id="svg14" version="1.2" viewBox="0 0 115.5 153" height="153pt" width="115.5pt">
While, other times, the units will be in pixels (unspecified units), example from the same file (same input, same exact command):<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:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="sample_file.pdf" viewBox="0 0 154 204" height="204" width="154" xml:space="preserve" id="svg2" version="1.1">
<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:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" sodipodi:docname="sample_file.pdf" viewBox="0 0 154 204" height="204" width="154" xml:space="preserve" id="svg2" version="1.1">
Why is the resulting SVG file inconsistent with the units.
I would prefer if it behaved as version 0.92.4, when the result would be always in pixels / unspecified units.
Thanks!
Please open a bug report at https://inkscape.org/report .
Bug report opened here:https://gitlab.com/inkscape/inbox/-/issues/2981
It is actually a duplicate of an older one: https://gitlab.com/inkscape/inkscape/-/issues/1248
Hi, I've upgraded to Inkscape v1.0 on Windows 10.
Using the command-line, as follows:
inkscape.exe --export-area-page --pdf-page=1 --export-text-to-path --export-background=ffffff --export-background-opacity=0.0 --export-plain-svg --export-overwrite --export-type=svg --export-filename=sample_file.svg sample_file.pdf
What I found out is that, if I run this command several times, within 6-10 attempts, the output SVG will be in different units.
Sometimes it will be in points (pt), for example, a few lines from the <svg> node:
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="sample_file.pdf"
id="svg14"
version="1.2"
viewBox="0 0 115.5 153"
height="153pt"
width="115.5pt">
While, other times, the units will be in pixels (unspecified units), example from the same file (same input, same exact command):
<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:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="sample_file.pdf"
viewBox="0 0 154 204"
height="204"
width="154"
xml:space="preserve"
id="svg2"
version="1.1">
Why is the resulting SVG file inconsistent with the units.
I would prefer if it behaved as version 0.92.4, when the result would be always in pixels / unspecified units.
Thanks!
Please open a bug report at https://inkscape.org/report .
Bug report opened here:
https://gitlab.com/inkscape/inbox/-/issues/2981
It is actually a duplicate of an older one: https://gitlab.com/inkscape/inkscape/-/issues/1248