pdf file size from simulink model

I'm trying to obtain a pdf as little as possible in file size from a simulink model. I noticed a big difference in resulting pdf file size between the following two procedures:
1) using matlab command:
print -dpdf -s test.pdf
2) using Simulink print dialog: File > Print > Print > Print to file > test.pdf
While the rusulting pdfs look the same, option 1) produces a 308KB pdf, option 2) only 22KB
Is there a way to obtains the pros from the two options: little size but from command line?

1 Kommentar

Sebastian
Sebastian am 9 Mai 2022
I have a similar problem.
Matlab 2015b:
simulink dialog -> small pdf file size
matlab command -> small pdf file size
Matlab 2018b:
simulink dialog -> small pdf file size
matlab command (print or saveas) -> big pdf file size
What would the print command look like which reproduces the exact same behavior and output file (size) as the simulink dialog?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Lilian Smith
Lilian Smith am 29 Jul. 2019

0 Stimmen

Hi I'm honored to be able to help you solve your problem. I've had this problem before, but later i found a free online pdf compressor websutes, that is FoneDog PDF Compressor. I hope it can help you solve your problem.Good lucky!

Kategorien

Mehr zu Simulink Environment Customization finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2017a

Gefragt:

am 29 Jun. 2018

Kommentiert:

am 9 Mai 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by