Welcome to NeoOffice developer notes and announcements
NeoOffice
Developer notes and announcements
 
 

This website is an archive and is no longer active
NeoOffice announcements have moved to the NeoOffice News website


Support
· Forums
· NeoOffice Support
· NeoWiki


Announcements
· Twitter @NeoOffice


Downloads
· Download NeoOffice


  
NeoOffice :: View topic - PDF graphics
PDF graphics
 
   NeoOffice Forum Index -> NeoOffice Beta Releases
View previous topic :: View next topic  
Author Message
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri Feb 13, 2009 12:34 am    Post subject: PDF graphics

Hey Patrick,

I was writing document and found that I could not PDF graphics. At least, they do not show as possible type in the file selector in Insert::Picture::From File

I forget if NeoOffice used to support PDF graphics in 2.2.5 (EPS was in the list in NO3EAP). It would be nice if we could have them because I found the only way to export a graph in vector format from Excel 2008 is as a PDF. That and PDF is a very common format on the Mac.

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
pluby
The Architect
The Architect


Joined: Jun 16, 2003
Posts: 11949

PostPosted: Fri Feb 13, 2009 5:40 am    Post subject:

NeoOffice and OpenOffice.org have never been able to insert PDF graphics so that is why you do not see it as an option. The only support for PDF that has been added in NeoOffice 3.0 Early Access is OpenOffice.org's PDF Import extension and that only imports a PDF file into a Draw document.

Patrick
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Fri Feb 13, 2009 7:58 am    Post subject:

OK, must have mixed up something in my head then..

Consider that a feature request then Smile. In case you have spare time on the next blue moon.

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Fri Feb 13, 2009 9:53 am    Post subject: Re: PDF graphics

ovvldc wrote:
It would be nice if we could have them because I found the only way to export a graph in vector format from Excel 2008 is as a PDF.

Can you open it in something like OmniGraffle and export back out as EPS? (OmniGraffle being less expensive than Illustrator and one upon a time shipping as bundled software on new Macs....)

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Jim
Councilperson


Joined: Jun 21, 2003
Posts: 173
Location: Selmer, Tennessee

PostPosted: Fri Feb 13, 2009 11:55 am    Post subject:

Your best bet is to open it in Preview, save as a .PNG or JPG, then drag/drop into Neo.

Alternatively, open in Graphic Converter, crop and doctor it, save as PNG or JPG, then insert into Neo normally. I haven't seen any of the PDF's saved out of excel, but they may be on an 8 1/2 x 11 page size. That'll mean a lot of white space that you don't want, so cropping may be needed.

_________________
Jim Plante
MacOS X 10.6.34, MacBook 2GHz C2Duo, 2gb, Neo 3.1.1 p 1
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Fri Feb 13, 2009 1:35 pm    Post subject:

Jim wrote:
Your best bet is to open it in Preview, save as a .PNG or JPG, then drag/drop into Neo.

Then you end up with either a low-resolution image that won't scale or print well, or a huge file size for the higher resolution.... Sad

As an aside, I'm cc'ed (this was about 3-4 years ago) on a couple of the OOo bugs for supporting importing and embedding SVG, and recently there was more ranting about OOo's lack of support for vector formats (EPS turns into a preview image and won't print, at least in apps that don't have Patrick's stellar EPS support; WMF/EMF support is buggy/flaky, as is vector PICT, which the people didn't mention).

To these people, SVG support is the only solution (of course, it's 2009 and we're still waiting on embedding, let alone import/editing Razz ), but it certainly seems to me that support for embedding vector PDF would be a lot more useful in the wider world, since just about every graphics package worth a hill of beans, as well as lots of consumer apps on all platforms, can export PDF Razz

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Fri Feb 13, 2009 1:44 pm    Post subject:

Oscar, another thought I just had (and one that doesn't require any additional software if it works): if you have an existing image in Excel (or another Office app), does Excel/etc. support selecting that and exporting it as WMF? Assuming your graph doesn't use any of the fancy effects that OOo's WMF importer can't handle, importing and then re-exporting could possibly get you a vector image that Neo could import....

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
aussie149
The Merovingian


Joined: Feb 12, 2005
Posts: 607
Location: Australia

PostPosted: Fri Feb 13, 2009 9:50 pm    Post subject: Save Picture

Actually, this thread led me to experimenting with PDF import. You can open PDF's in Draw. The component images of the pdf are available to you there, but when you right-click on one element [image] and try to Save as Picture... it leads to a zero kb file for svg, eps and pdf saves. Png, tiff and jpeg file saves work. In OOo 3.0, I get a non-zero file for eps file saves, but the files can't be opened by graphic converter, preview, inkscape etc.
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Sat Feb 14, 2009 12:55 am    Post subject:

sardisson wrote:
Oscar, another thought I just had (and one that doesn't require any additional software if it works): if you have an existing image in Excel (or another Office app), does Excel/etc. support selecting that and exporting it as WMF? Assuming your graph doesn't use any of the fancy effects that OOo's WMF importer can't handle, importing and then re-exporting could possibly get you a vector image that Neo could import....


I am using Excel 2008, because the university gave me that for free. If I copy the graph, the only pasting option in NeoOffice is 'bitmap' and if I try to save the graph (by right cliking on it, no menu options for that), I have the choice between JPEG, PNG, BMP, GIF and PDF...

In used to be in Excel 2004, that it would copy an EMF or WMF to clipboard and I would use that. But no longer... I may have to reinstall Office 2004 and use it in Rosetta. I hate their new chart interface anyway..

Best wishes,
Oscar

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Sun Feb 15, 2009 10:15 am    Post subject:

A google search led me to this page:

http://insti.physics.sunysb.edu/~siegel/x.shtml

Where there is a link to xpdf and a dropper for that - xpdf is a freeware command line app that (among other things) converts PDF files into eps - it seems to work fine, the only caveat being that (of course) your PDF doc has to be only one page long - if you want eps of a multipage PDF you'd have to split it up into separate pages first.

The ease with which this works does make me wonder if there's any scope for making this functionality available in NeoOffice somehow as an extension, so that the user could pick up a PDF file to insert as an image, and the extension would convert it into the relevant .eps before inserting? That would be a very cool thing to have, but I don't know how/who Smile.

- padmavyuha

*edit* using a command-line tool like pdftk it's possible to write a script to burst a multipage PDF into multiple PDF files prior to running PDFtoPS on them to get multiple .eps files. Love that command line and it will love you back.
Back to top
ovvldc
Captain Naiobi


Joined: Sep 13, 2004
Posts: 2352
Location: Zürich, CH

PostPosted: Sun Feb 15, 2009 11:56 am    Post subject:

yoxi wrote:
A google search led me to this page:

http://insti.physics.sunysb.edu/~siegel/x.shtml


Thanks!

yoxi wrote:
The ease with which this works does make me wonder if there's any scope for making this functionality available in NeoOffice somehow as an extension, so that the user could pick up a PDF file to insert as an image, and the extension would convert it into the relevant .eps before inserting? That would be a very cool thing to have, but I don't know how/who Smile.


Funny though. Mac uses a subset of PDF for its window management, and now I have to convert the image away from that before I can use it..

Best wishes,
Oscar

P.S. I was thinking of using Platypus to make a droplet..

_________________
"What do you think of Western Civilization?"
"I think it would be a good idea!"
- Mohandas Karamchand Gandhi
Back to top
yoxi
Cipher


Joined: Sep 07, 2004
Posts: 1799
Location: Dawlish, Devon

PostPosted: Sun Feb 15, 2009 12:01 pm    Post subject:

Droplets are good - I was just thinking it would get the 'drop' on OOo for mac if Neo users could just choose a PDF doc, and then the extension (or whatever) would pop the page or pages into the Neo doc as eps automatically for them. It's a bit of a shame that the PDFtoPS command won't take wildcards as an argument for the file(s) to be converted - you have to hand it a list of space-separated filenames, or call it in a loop.
Back to top
sardisson
Town Crier
Town Crier


Joined: Feb 01, 2004
Posts: 4588

PostPosted: Sun Feb 15, 2009 1:47 pm    Post subject:

Nice find! Shame the built-in pdftops can't do that Sad

I guess you could poke around in the source for the Sun PDF-to-Draw importer extension and see how they do the "supported file types" integration.

I'm not sure how happy the OOo codebase might be when it has two different importers that want to handle the same file type, though Razz

Smokey

_________________
"[...] whether the duck drinks hot chocolate or coffee is irrelevant." -- ovvldc and sardisson in the NeoWiki
Back to top
Display posts from previous:   
   NeoOffice Forum Index -> NeoOffice Beta Releases All times are GMT - 7 Hours
Page 1 of 1

 
You can post new topics in this forum
You can 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
You cannot attach files in this forum
You cannot download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © Planamesa Inc.
NeoOffice is a registered trademark of Planamesa Inc. and may not be used without permission.
PHP-Nuke Copyright © 2005 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.