Export vectors from Illustrator and trim out extra canvas to use in Latex
Is there a way to save an Illustrator file as
png, I only get the actual drawn object.
Is there a possibility to save as
Probably, you would like this way
click on menu item Object->Artboards->Fit to Artwork Bounds and after that File->Save As... PDF as usual.
If you want artboard size back - just press Command-Z or if you on Win Control-Z after saving.
The same result you can achieve by pressing Shift-O (or clicking on the artboard icon) and choosing the option as on the picture -