Export multipage files

Post questions on how to use or achieve an effect in Inkscape.
Gaploid
Posts: 5
Joined: Sat Oct 19, 2013 10:09 pm

Export multipage files

Postby Gaploid » Sat Oct 19, 2013 10:49 pm

Hi,
Is it possible to export mulipage files in command line?
something like that: inkscape.com filename.cdr --export-png=*.png

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Export multipage files

Postby Lazur » Wed Oct 23, 2013 4:39 am

Hi.
Yes, it is.
Some reading here.

Gaploid
Posts: 5
Joined: Sat Oct 19, 2013 10:09 pm

Re: Export multipage files

Postby Gaploid » Thu Oct 24, 2013 8:06 pm

looks like your link does not answer on my question. There are some files for example cdr or tiff that can be multipaged inside it. right no the console comanda --export-png export only first page from file. Maybe there is some additional option that can be set?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export multipage files

Postby ~suv » Wed Oct 30, 2013 9:51 pm

Gaploid wrote:Is it possible to export mulipage files in command line?
something like that: inkscape.com filename.cdr --export-png=*.png
No, current development builds don't have such a feature built-in - neither for CDR nor for other multi-page file formats like PDF.

(For PDF there exist several utilities to split file into individual pages (PDF) - I'm not aware of such a tool for CDR files. You could use the command line tool from libcdr (cdr2xhtml), and write a (shell, python, perl, …) script which first converts the CDR file to an XHTML file, then extracts the different pages from the XHTML file (the XHTML file is a basically a wrapper for the individual SVG files per page), and finally runs inkscape on each of those extracted SVG files to export to PNG (possibly by piping the list into an 'inkscape --shell' command if there are lots of pages to convert).

Gaploid
Posts: 5
Joined: Sat Oct 19, 2013 10:09 pm

Re: Export multipage files

Postby Gaploid » Fri Nov 01, 2013 8:46 pm

Thanks for answer. Can you point me to cdr2.html

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Export multipage files

Postby ~suv » Fri Nov 01, 2013 9:18 pm

Gaploid wrote:Thanks for answer. Can you point me to cdr2.html"font-weight: bold">Inkscape Devlibs for Windows repository. AFAICT the repo does include the command line tools (binaries) from libcdr (they are not bundled with inkscape because inkscape does not use them).

For details about how to checkout the bazaar repository on Windows, I would refer you to this page in the Inkscape wiki: Compiling Inkscape on Windows > Install the developer libraries (you likely will have to install a Windows build of bzr for this), or alternatively - if you do not need to be able to update the files from the repo, or do not want to bother with bzr - download a tarball of the latest revision from the bazaar repo (browse to the changelog, click on the latest revision - on the page showing the changes for that revision, there's a link called download tarball).


Return to “Help with using Inkscape”