ink2pdf icon indicating copy to clipboard operation
ink2pdf copied to clipboard

--reparse parameter to correct page numbering in .svg file

Open datalot-369 opened this issue 5 years ago • 2 comments

Being the existence of two multiple ways to avoid rewriting the whole layer's numbering list (Writing with zeros after the number or using decimals), use an argument like that to create a new file with "-reparsed" appended that has the layer's prefixes corrected regarding the page number. This way, p0050, p3, p5.7 becomes p1, p3, p2.

datalot-369 avatar Feb 11 '21 09:02 datalot-369

@datalot-369 Thanx for the suggestion! Let me check that I understand your request: You want to generate a whatever-reparsed.svg Inkscape .svg file from the original, with the page numbers cleaned up? That is, ink2pdf would re-prefix the layer names with simple integer page numbers p1, p2, p3...?

If we make the option accept the output file name, like this,

    ink2pdf input-file.svg  --renumber-to output-file.svg

would that be ok?

(Hmmm, I'd have to give some thought to how background prefixes are handled...)

spook avatar Feb 23 '21 18:02 spook

Yes. That's a perfect understanding of my feature request.

Regarding background prefixes... They also would be rewritten to match the corresponding pages.

datalot-369 avatar Jun 25 '23 01:06 datalot-369