I frequently export plots which I generated in MATLAB to PDF files, which I then would like to use in LaTeX. However, MATLAB always puts two white backgrounds to every export. So in order to fix this, I use Inkscape. There are always the same 3 steps for every picture:
- Remove both white backgrounds.
- Use the button “Resize Page to drawing or selection”.
- Export as PDF.
I am losing my mind to do this every single time. Is there a way to automate this task under Windows? I can also upload a sample PDF file, but apparently StackExchange does not support that.