Inkscape.org
Beginners' Questions automatically exporting on save
  1. #1
    automationNerd automationNerd @automationNerd

    I was wondering if it is at all possible to make exporting a bit easier for myself.

    Currently I can either manually "save a copy as", then select a filename, use the dropdown to select pdf, enter some pdf settings, and I'm done.

    (This is already a step up from what I did before, which is "save" the svg, then "save as" pdf, entering all those options, then "save as" svg again to get back to the svg file.)

    Ideally, I'd set once that I want an export to pdf with a certain name and options, and then when I save the svg, it updates the pdf as well. Even better if I could have multiple automatic exports that all automatically update like this. (e.g.: export the whole file as png as well, and export a certain window as png too, and also save an alternate version where layer_1_english is set to invisible but layer_1_spanish is set to visible)

    Is any of this at all possible? Are there extensions that do this? Would it be fairly straightforward for me to make an extension myself that does this?

    It feels like a very obvious thing to want to do, but I can't find any mention of it. If this isn't possible yet, are there plans to implement it in the future? Or am I just weird and nobody else would ever want to do this?

  2. #2
    inklinea inklinea @inklinea⛰️

    I think the quickest you can do for .pdf is instead of using File>Save as, use File>Save a Copy

    Save a Copy should remember you saved as pdf last time, and will not change the file format of the main save.

    You can alternate between them Using Ctrl+sΒ  and Ctrl+Shift+Alt+s

    There is an extension to export to pdf latex, but I don't think it would be any quicker.

    The rest of it, is a bit more complicated.Β 

  3. #3
    inklinea inklinea @inklinea⛰️

    It's possible to call the Inkscape command line from extensions, and export png and svg at the same time.Β 

    Unless you already know python, I don't think it's possible.

  4. #4
    automationNerd automationNerd @automationNerd

    Oh I'm a Python wizard, I should be fine, I just haven't interacted with inkscape through python yet. Where would you recommend I start looking to get this set up?

Inkscape Inkscape.org Inkscape Forum Beginners' Questions automatically exporting on save