Skip to main content
New Participant
May 19, 2023
Answered

importing matplotlib vector graphics with many objects into illustrator increases file size

  • May 19, 2023
  • 1 reply
  • 1352 views

Hi,

 

I am using a vector graphics pdf created with Matplotlib consisting of many objects (a couple of thousand). The original file size (as created by Matplotlib) is 41KB. See the attached snippet for an example of the information I use. When I load this pdf into Illustrator and save it (without making any modifications), the new file size is 2.6MB (saved with the smallest file size option). Any ideas on what can be done to improve the file size of Illustrator? Fidgeting with the menu options did not help much.

 

 

This topic has been closed for replies.
Correct answer Monika Gause

Probably Matplotlib just writes some very basic PDF.

Illustrator writes PDFs that can be used for printing.

 

With your initial file from the opening post, which options exactly are turned on when saving the file?

 

You will have to live with at least some file increase. You cannot expect Illustrator to write exactly the same code as the other tool does. 

1 reply

Brainiac
May 19, 2023

What size is an empty (blank) page saved from Illustrator in the same way? This may just be the standard overhead.

New Participant
May 21, 2023

A blank page created with Matplotlib has a 1KB size. After Illustrator, the new file is of size 10KB.

Monika Gause
Monika GauseCorrect answer
Adobe Expert
May 21, 2023

Probably Matplotlib just writes some very basic PDF.

Illustrator writes PDFs that can be used for printing.

 

With your initial file from the opening post, which options exactly are turned on when saving the file?

 

You will have to live with at least some file increase. You cannot expect Illustrator to write exactly the same code as the other tool does.