letmo wrote:Via "Insert" -> "Picture" -> "From File..." Writer, Impress and other OOo modules only allow .eps postscript graphics import, not .ps or .pdf.
letmo wrote:Tools for manual postscript (.ps, .eps, .pdf) conversion to OOo-compatible graphics formats are available on various operating systems, but knowing that even MS Powerpoint has a decent eps import filter these days, to me it would seem a little nuisance to do this manual conversion for every single postscript file on a daily basis...
letmo wrote:Therefore, going one step further, I'd also like to know whether native postscript import is a feature scheduled for a future OOo release, and whether there is a corresponding OOo issue that I could support with my vote.
foxcole wrote:It can insert a PDF file using OLE (Insert> Object> OLE object), which you should be able to do if your computer has a program that can edit the object. That's one of the restrictions of OLE links, because the nature of OLE is to link to files created by other applications and be able to edit the object using its native program, without leaving the host program. It's not good enough to have a display program, such as a PDF reader, for an OLE linked object. I can link to a PDF file from Writer because Acrobat Professional resides on this computer, but folks who only have readers (FoxIt or Adobe Reader) are unable to do so.
foxcole wrote:As to why you're unable to see the bounding box for EPS files, I'm guessing it's a problem with the source of the EPS files... if they're not native Illustrator files, it's possible that something is being added or changed in the file header, that Writer can't recognize. Would you be able to post a sample EPS somewhere such as http://www.mediafire.com/? It might help to have others test to see if we get the same results.
foxcole wrote:letmo wrote:Tools for manual postscript (.ps, .eps, .pdf) conversion to OOo-compatible graphics formats are available on various operating systems, but knowing that even MS Powerpoint has a decent eps import filter these days, to me it would seem a little nuisance to do this manual conversion for every single postscript file on a daily basis...
Word itself can't read PDF or other Postscript files... it will try to do the same kind of file conversion as you're seeing with Writer, for the same reasons noted above. PDF or Postscript is not a supportable format in a document editor. You'll have to do the file conversion no matter what word processor you're in.letmo wrote:Therefore, going one step further, I'd also like to know whether native postscript import is a feature scheduled for a future OOo release, and whether there is a corresponding OOo issue that I could support with my vote.
I doubt you'll ever see this capability in OpenOffice or Microsoft Office or any other non-Adobe word processor. To import means to convert to a format editable by the application you're importing into, and Adobe holds tight reins over licenses to edit PDF and other PS formats... rightfully so. The ability to edit them is how Adobe continues to earn profits on its proprietary formats. Why would they give that away?
letmo wrote:But some months ago, when I was still using MS Word, whenever I imported an NCL-produced EPS into MS Word, I got the impression that during import the EPS was converted into a (MS Word-internal) graphics format that still maintained its vector data structure. This means the imported graphics were still scalable without quality loss thanks to the vector format. This scalability is what I liked so much about the MS Word EPS import.
foxcole wrote:What happens with the EPS format is that the creator program may generate a preview image in either TIF or WMF format. This preview image is what you see in the Word document, and its quality depends entirely on the quality assigned at file creation (low, medium, or high). It's actually this preview image that you're resizing when you work with the image in Word. Neither TIF nor WMF are vector graphic formats.
foxcole wrote:I avoid EPS graphics because they're not useful in a word processor, and are completely meaningless in a non-Postscript environment.
[...]
Regardless, I might recommend you try other file formats... although I'm not sure of your printing capabilities and needs. I hope this at least helped.
foxcole wrote:There is something wrong with the file format on the EPS file; I can't insert it at all in either portable OOo 2.1 or local install OOo 2.3, in either Writer or Draw---I get an error message that the file is an unknown graphic format. Looking at the file in Hexplorer, I see it's an Adobe 2.0 version file. I wonder whether that version is too recent. Maybe if the file were made compatible with older versions, you might be able to see the preview image in Writer.
letmo wrote:Files like the one I posted do not contain this kind of preview. The situation you describe is not the problem I encounter.
letmo wrote:(WMF is a vector format.)
letmo wrote:Unfortunately I do not have much choice. My job is to produce and analyse scientific data in NetCDF format, and IMHO the two best freeware tools that can handle this format are Ferret (only .ps output) and NCL (.ps, .pdf and .eps output). I can't change their output, and I can't afford Matlab, IDL, AVS licenses either...
So I produce my data and graphics in the Linux world and I produce my scientific output in Linux or Windows using LyX (LaTeX) for articles and OOo for cooperation and presentations. For the latter I need to find a way to bridge the gap between these worlds.
foxcole wrote:There is something wrong with the file format on the EPS file; I can't insert it at all in either portable OOo 2.1 or local install OOo 2.3, in either Writer or Draw---I get an error message that the file is an unknown graphic format. Looking at the file in Hexplorer, I see it's an Adobe 2.0 version file. I wonder whether that version is too recent. Maybe if the file were made compatible with older versions, you might be able to see the preview image in Writer.
letmo wrote:If only I could import it into Draw and from there to Impress or Writer
foxcole wrote:You have my sympathies! It appears you're stuck with making sure the EPS previews are high-quality WMF format.
foxcole wrote:foxcole wrote:There is something wrong with the file format on the EPS file; I can't insert it at all in either portable OOo 2.1 or local install OOo 2.3, in either Writer or Draw---I get an error message that the file is an unknown graphic format. Looking at the file in Hexplorer, I see it's an Adobe 2.0 version file. I wonder whether that version is too recent. Maybe if the file were made compatible with older versions, you might be able to see the preview image in Writer.
That bit I wrote about the 2.0 version isn't right. I found another EPS on my computer that's version 3.0 and doesn't receive that error, so there's just something in the construction of the EPS file that doesn't pass the weak EPS filters in OOo.
Ghostscript has been used in the past by other OOo users to "repair" EPS files. That might help in this case... it would add a step to your process but at least you could still use your process.
acknak wrote:Your file works for me if I first run it through "eps2eps", which is part of Ghostscript. This "normalizes" some aspects of the EPS file and allows OOo to use it properly.
foxcole wrote:letmo wrote:If only I could import it into Draw and from there to Impress or Writer
I'm pretty sure Draw uses the same EPS file filter as Writer and Impress, so I'm not sure using Draw would make much of a difference. :-/
acknak wrote:It does not add a preview, but newer OOo releases (>=2.2 I think) will add one automatically if Ghostscript is installed. There are utilities that can add a preview as well--that gives you complete control over the quality of the preview.
... I guess that OOo may not be aware that Ghostscript is available on my Win XP. If possible, could you please let me know how to proceed?
The utilities you mentioned: are they available as OOo plugins, makros or the like on Linux or Windows?
> apparently Openoffice.org is unable to directly import NCL's EPS
> output (header starts with "%!PS-Adobe-2.0 EPSF-2.0") whereas it is
> able to import the newer EPS format (header starts with "%!PS-
> Adobe-3.0 EPSF-3.0"). I refer to "direct import" as "without the
> use of an external converter"; I'd be happy to avoid such an
> additional postprocessing step.
>
> Is there a way to tell NCL to produce 3.0 EPS files, or any chance
> NCL's EPS output format could be updated in a future NCL release?
What NCL produces is in fact PostScript Level 2. Level 3 should be backward
compatible with level 2. Some printers will not yet accept Level 3 and that is why
we hesitate to flag our Postscript files at Level 3. It is my opinion that any printer
or application that honors Level 3 should accept Level 2.
letmo wrote:Sorry for the long silence. Now I have finally contacted the developers of the NCL software that produces the %!PS-Adobe-2.0 EPSF-2.0 EPS format. Here's their reply:What NCL produces is in fact PostScript Level 2. Level 3 should be backward
compatible with level 2. Some printers will not yet accept Level 3 and that is why
we hesitate to flag our Postscript files at Level 3. It is my opinion that any printer
or application that honors Level 3 should accept Level 2.
The question now goes back to OOo: is there any chance that import of EPS of PostScript Level 2 will be supported in a future release?
File Created by Content Header Insert > Picture
-------- ------------------------ ------- ------ ----------------
val.eps (original) EPSF-2 EPSF-2 FAIL
val3.eps eps2eps val.eps val3.eps 2+3 3 OK
val2.eps edit header of val3 2+3 2 OK
val1.eps eps2eps 1 3 OK
-dLanguageLevel=1
val.eps val1.eps
val12.eps edit header of val1 1 2 OK
val3x.eps edit header of val 2 3 FAIL
If the file contains [...] a line like
%%BoundingBox: (atend)
the file is still probably Encapsulated PostScript, but the bounding box is given at the end of the file. [...] (The bounding box is given in this way when the program that generated the PostScript couldn't know the size in advance, or was too lazy to compute it.)
Putting the bounding box information at the beginning of the file is something
that we have on our list, but it requires that the information needs to be gathered
during the file creation and then inserted at the beginning when the picture
is terminated. Since we create the file during execution instead of saving it
in a buffer and writing it at the end, we would have to read the file that has
been created and then re-write it with the bounding box information inserted.
Since the ps2ps and ps2epsi tools are readily available, we have not assigned
a high priority to this task. My recommendation would be to write a normal
Postscript file and then run that through ps2ps. The version of ps2ps that I
have (which is two years old) also changes the Postscript level from 2 to 3.
If this becomes a big issue for people, then we will reconsider its priority.
If this becomes a big issue for people, then we will reconsider its priority.
It seems that at least three workarounds (ps2ps, ps2epsi, epstool) are working, which is one of the reasons why currently neither OOo nor NCL assign a high priority to this issue.
xxhc wrote:ok, here is my voice: I think it would be great to reconsider priority status of these issues.
Users browsing this forum: jackdashack and 18 guests