OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

[SOLVED] Mass Export?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Draw
View previous topic :: View next topic  
Author Message
lazyspoon
General User
General User


Joined: 19 Sep 2009
Posts: 6

PostPosted: Sat Sep 19, 2009 7:48 am    Post subject: [SOLVED] Mass Export? Reply with quote

Is there a way to mass-export say, 100+ slides from a single file to JPG or PNG? Some sort of Macro or something?

Please help, it is such a pain doing them one by one. Confused
_________________
The Laziest.


Last edited by lazyspoon on Sat Sep 19, 2009 1:56 pm; edited 1 time in total
Back to top
View user's profile Send private message
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 3102
Location: Belgium

PostPosted: Sat Sep 19, 2009 8:20 am    Post subject: Reply with quote

* Export as PDF
* "convert file.pdf image_%02d.jpg"

The end result is a series of images, "image_01.jpg", "image_02.jpg" etc. "convert" is the utility of ImageMagick to do graphics conversions. Save to a graphic format of your choosing and use command line options to tweak resolution, etc.
_________________
--
GNU/Linux (Ubuntu)
Back to top
View user's profile Send private message
lazyspoon
General User
General User


Joined: 19 Sep 2009
Posts: 6

PostPosted: Sat Sep 19, 2009 8:48 am    Post subject: Reply with quote

C:\Users\LazySpoon Utensil\Documents\TSOD Temp\4.5 - 2\slide export test 1>conve
rt test.pdf image_02%d.jpg
convert: `%s': %s "gswin32c.exe" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -d
NOPROMPT -dMaxBitmap=500000000 -dEPSCrop -dAlignToPixels=0 -dGridFitTT=0 "-sDEVI
CE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" "-sOutputFile=C:/U
sers/LAZYSP~1/AppData/Local/Temp/magick-Lo2zbgxh" "-fC:/Users/LAZYSP~1/AppData/L
ocal/Temp/magick-c3B2Ly_c" "-fC:/Users/LAZYSP~1/AppData/Local/Temp/magick-gVw27m
T-" @ utility.c/SystemCommand/1890.
convert: Postscript delegate failed `test.pdf': No such file or directory @ pdf.
c/ReadPDFImage/630.
convert: missing an image filename `image_02%d.jpg' @ convert.c/ConvertImageComm
and/2819.

I was able just copy/paste the slides from draw to impress then export as HTML filter to get the individual jpg's, but I'd love to get the docs to PNG (lossless) because they'll be used as slides in a video editor.

No luck with ImageMagick, any help with either still?
_________________
The Laziest.
Back to top
View user's profile Send private message
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 3102
Location: Belgium

PostPosted: Sat Sep 19, 2009 9:39 am    Post subject: Reply with quote

You probably do not have Ghostscript installed, which convert uses for reading the PDF.

Other, MS Windows only approach: PDFCreator, which allows to "print" to graphic files besides printing to PDF.

After having installed PDFCreator, you will have ghostscript on your system, which PDFCreator also uses. Thus, at that point, the "convert" approach might also work with you.

Third alternative, and you still need ghostscript: install gsview, that allows you to open a PDF exported by Draw, and allows you to print it to bitmap files.

Fourth option (works on Windows *and* Linux, and, yes, you still need ghostscript): install the photo editor "The Gimp". It opens PDF, converting them to bitmap format in a resolution of your choice. This is more of a "Graphical user interface" approach and somewhat less efficient if many slides are involved. In fact, it could become very slow for large PDF files.
_________________
--
GNU/Linux (Ubuntu)
Back to top
View user's profile Send private message
lazyspoon
General User
General User


Joined: 19 Sep 2009
Posts: 6

PostPosted: Sat Sep 19, 2009 1:55 pm    Post subject: Reply with quote

Oh Em Eff Gee.

Exporting from Draw (instead of impress) to HTML gives you the option to put your images in PNG.

It's not like any of the other options worked anyways. PDF Creator, convert command line, GS command line (wasn't even recognizing)... Gimp would have opened the PDF as separate files anyways (not really saving time)--NONE of it did what I wanted.

This issue is solved. I am going to explore a lot more when I have a problem next time.

Confused Shocked Mad Surprised Surprised !!!!
_________________
The Laziest.
Back to top
View user's profile Send private message
lazyspoon
General User
General User


Joined: 19 Sep 2009
Posts: 6

PostPosted: Sat Sep 19, 2009 2:00 pm    Post subject: Reply with quote

Oh, and thank you for your suggestions. They all seemed to point in the right direction, they just didn't work for whatever reason (i did something wrong or stupid windows 7 messed something up or SOMETHING).

I didn't want to seem ungrateful. Very Happy ^_^
_________________
The Laziest.
Back to top
View user's profile Send private message
ftack
Moderator
Moderator


Joined: 27 Jan 2003
Posts: 3102
Location: Belgium

PostPosted: Sat Sep 19, 2009 11:10 pm    Post subject: Reply with quote

The HTML slide show is a good basic approach if the default resolution is adequate. The advantage of the other approaches is that you eventually can produce high resolution graphics.
_________________
--
GNU/Linux (Ubuntu)
Back to top
View user's profile Send private message
marwerno
General User
General User


Joined: 09 Jan 2006
Posts: 33

PostPosted: Tue Oct 06, 2009 4:22 am    Post subject: Reply with quote

Well, there is one other option, ideally if you want ALL pictures from your document in original resolution/ format:
ODG is nothing else but a ZIP file. Make a backup of the original document (as the windows ZIP utility damages the file when re-compressing). Then unzip it (simply put .zip at the end of the filename and Windows will handle it.
Now you see a folder structure which will also have all you pictures, in original format and resolution. No loss whatsoever!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Draw All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group