Adding .pdf Images to Document

I need to provide a client with a Word version of a report written in
LaTeX. Exporting the text to LO format works just fine, but all the images
in the document are .pdf files generated by GRASS or R. I'm having
difficulty finding how to insert these images in the LO document.

   Please point me in the right direction.

TIA,

Rich

Rich Shepard wrote:

  I need to provide a client with a Word version of a report written in
LaTeX. Exporting the text to LO format works just fine, but all the images
in the document are .pdf files generated by GRASS or R. I'm having
difficulty finding how to insert these images in the LO document.

  Please point me in the right direction.

Insert -> Picture -> From file
Hope this helps.
Girvin Herr

Girvin,

   That's what I kept trying but it would not open a file dialog box and
would not accept the file name in the text entry widget on the "picture"
tab.

Rich

Rich Shepard wrote:

Insert -> Picture -> From file
Hope this helps.

Girvin,

  That's what I kept trying but it would not open a file dialog box and
would not accept the file name in the text entry widget on the "picture"
tab.

Rich

What version of OO are you using?
Check to see if you have the

What version of OO are you using?

   libreoffice-3.5.5_en_US-i586-1_SBo on Slackware-13.1

Check to see if you have the

   ?

Rich

Hi.
PDF is not listed as a type of image to insert in my LO 3.5. EPS is if you can convert the PDF's.
Steve

If I need to import a PDF image created from my QGIS/GRASS
applications[1]: File|Open|<pdffile> and that will open in Draw. Right
click the image and select 'Copy'. Then paste into the Write document.
You can also, of course, open the pdf in Acroread etc., and then just
copy & paste the image into write.

[1] Doesn't really matter what created the PDF image.

Rich Shepard wrote:

Insert -> Picture -> From file
Hope this helps.

Girvin,

  That's what I kept trying but it would not open a file dialog box and
would not accept the file name in the text entry widget on the "picture"
tab.

Rich

Oops! Sorry, I had so many windows up, I must have clicked on the wrong one and sent my incomplete reply.
As I was saying, check to see if you have the "PDF Import" extension. (Tools -> Extension manager) Other than that, I don't know why you are not getting the file open dialog. I am running Linux LO 3.5.7.2 and it works fine for me. Maybe someone else can explain that.
You might also give some more information, like OS and LO versions.
Girvin Herr

Girvin R. Herr wrote:

Rich Shepard wrote:

Insert -> Picture -> From file
Hope this helps.

Girvin,

  That's what I kept trying but it would not open a file dialog box and
would not accept the file name in the text entry widget on the "picture"
tab.

Rich

<snip>

Okay, I was incorrect. I thought I did open a PDF in Writer. But it must have been Draw, not Writer. Sorry.
I just did some work on this problem and discovered a way to do it. Here is what I did:

    In Writer,
    Insert -> Object -> OLE Object ->
    In the dialog that comes up, Click on "Create from file" at the top.
    In the dialog that comes up, Click on "Select..." to bring up the
    file browser.
    Select the PDF file you want to insert.
    Click on "Open".
    Click on OK.

The PDF file should come up in Writer as an embedded Draw OLE object. You will most likely have to adjust the frame margins on the page if you want the PDF object to cover the full page. You may be able to edit the PDF image by double clicking on the Draw window, which brings up Draw with the image. I say "may", because from my experience, some PDFs allow editing in Draw and some do not. I was not able to insert the PDF file directly into the Writer document. If you open a PDF file, it will come up in Draw and if the PDF has multiple pages, Draw will have multiple pages, something like Impress. Someone else suggested copying the image in Draw and pasting it into Writer, but when I tried that, it did not work. If someone has done that successfully, I would like to know how. Also, if the PDF is opened with Draw and saved as an odg file, one would think the odg could be inserted into a Writer document, but I was unsuccessful trying to do that. That said, there may still be other ways to do this. With enough time, those ways may be discovered.

Hope this helps.
Girvin Herr

Rich ,

.pdf is not a accepted graphic format for LO or OO

surly we urgent need that... in the mean time convert the PDF images to SVG (using Inskape) and then place the SVG in your writer Doc. For non-complex PDF files it works fine.

Steve,

   That's a thought! Hadn't occurred to me.

Thanks,

Rich

Girvin,

   Thank you. I think that converting .pdf to .eps will be quicker so I'll
try that first.

Much appreciated, both of you,

Rich

Hi :slight_smile:
Eps??  Are you sure?  I seem to have trouble with my Epses but that is probably either my fault or some weirdness of the program producing the Eps (i think Adobe Creative something, an expensive product that tries to force other people into buying it.)  So, is there somewhere i can test an Eps to see how well it conforms to what it should be? 
Regards from
Tom :slight_smile:

I use a lot of EPSs in my documents. These are usually the first to drop out with the lost image problem (resolved by turning auto save off). I have linux and mac, so not sure if EPS compatibility is reduced on win. I have a feeling on windows the thumbnail image in many EPSs is used instead of the actual EPS vector data producing poor looking results. LO wasn't producing PDFs well with EPSs (doing the same as win) so I print to PS and use PS2PDF.
steve

Tom Davies wrote:

Hi :slight_smile:
Eps?? Are you sure? I seem to have trouble with my Epses but that is probably either my fault or some weirdness of the program producing the Eps (i think Adobe Creative something, an expensive product that tries to force other people into buying it.) So, is there somewhere i can test an Eps to see how well it conforms to what it should be? Regards from
Tom :slight_smile:
  

Tom et. al.,
Beware of inserting EPS images into a document! I was composing a document with many images that I scanned in and used EPS because the resulting files were smaller than Jpeg or PNG. As I was inserting the EPS images, scrolling through these images got slower and slower. It finally got unbearable and I was still not finished inserting images. It seemed like the LO EPS renderer was inefficient or the file format was inefficient and took a lot of system resources to render the images. I tried increasing the LO graphics RAM allocation, but that did not help. I finally switched to Jpeg versions and as I replaced the EPS images with the Jpeg equivalents, scrolling through the document got faster and faster.
Girvin Herr

...

Just be aware of some EPS issue in LO (and AOO):

1. EPS images in LO will only show the 'image preview'. The thread from
this list is worth a read:
<http://listarchives.libreoffice.org/global/users/msg02032.html>

2. You will most likely experience serious scrolling issues in a
document with a large EPS. A simple example of this is:

<https://bugs.freedesktop.org/show_bug.cgi?id=37837>
Download and try the attachment:
<https://bugs.freedesktop.org/attachment.cgi?id=47445>
and you'll see what I mean. Open the TOP in a terminal & set to remain
on top. Open the attachment .odt and try to scroll to the bottom of page
2 (where the EPS is embedded). You'll see a significant delay & if you
watch TOP, you'll see that soffice first calls up gs (Ghost Script) &
then convert (ImageMagick), and then finally will display the image preview.

You can imagine what viewing the document will be like with multiple EPS
images...

NoOp wrote:

  

Okay, I was incorrect. I thought I did open a PDF in Writer. But it must have been Draw, not Writer. Sorry.
I just did some work on this problem and discovered a way to do it. Here is what I did:

  In Writer,
  Insert -> Object -> OLE Object ->
  In the dialog that comes up, Click on "Create from file" at the top.
  In the dialog that comes up, Click on "Select..." to bring up the
  file browser.
  Select the PDF file you want to insert.
  Click on "Open".
  Click on OK.
      

Girvin,

   Thank you. I think that converting .pdf to .eps will be quicker so I'll
try that first.
    

...

Just be aware of some EPS issue in LO (and AOO):

1. EPS images in LO will only show the 'image preview'. The thread from
this list is worth a read:
<http://listarchives.libreoffice.org/global/users/msg02032.html>

2. You will most likely experience serious scrolling issues in a
document with a large EPS. A simple example of this is:

<https://bugs.freedesktop.org/show_bug.cgi?id=37837>
Download and try the attachment:
<https://bugs.freedesktop.org/attachment.cgi?id=47445>
and you'll see what I mean. Open the TOP in a terminal & set to remain
on top. Open the attachment .odt and try to scroll to the bottom of page
2 (where the EPS is embedded). You'll see a significant delay & if you
watch TOP, you'll see that soffice first calls up gs (Ghost Script) &
then convert (ImageMagick), and then finally will display the image preview.

You can imagine what viewing the document will be like with multiple EPS
images...
  

NoOp,
I'll second that! That was exactly my experience with many EPS images in a Writer document I was working on. I had anecdotal evidence, but you state factual evidence (the links).
Thanks.
Girvin Herr

NoOp wrote:

...

You can imagine what viewing the document will be like with multiple EPS
images...
  

NoOp,
I'll second that! That was exactly my experience with many EPS images
in a Writer document I was working on.
I had anecdotal evidence, but you state factual evidence (the links).
Thanks.
Girvin Herr

I'll have to check on a Windows version to see if the same applies. I
think that it might just be a linux issue as linux uses gs + convert.

Steve ,

I use a lot of EPSs in my documents.

We did also, but PostScript is slowly dying because of "no transparency". LO and OO handles well EPS, but you need a eps with "previeuw" to show a bitamp representation off the content. Making a native-PDF (using PDF-export) export the bitamp representation and not the vector data.
Making PDF with a Postscript application like(PS2PDF) works very well and here the vector data are used, not the bitmaps.
Using SVG is the future, Both LO and OO are fast advancing in there use of it, the major problem is that the current PDF export also export a bitmap representation and not the vector data, this was not so in older versions, LO promeses to fix this issue in 3.7 = (4.0) no news from OO.