Page 1 of 1

[Solved] Picture not showing when converting to pdf

Posted: Sat May 08, 2010 9:43 am
by Enzo_za
Although I followed the instruction at "Not able to see pictures and graphics" http://user.services.openoffice.org/en/ ... 29#p137887, I am still unable to see the picture when I convert to PDF. Is there some other setting that I need to check. This problem has been frustrating :crazy: me for some time. I need to insert my logo into some documents.
Any help would be appreciated.

Thanks
Vincent

Running Windows XP with SP3,
00o-dev 3.3.0, mm77 (build 9496)

Re: Picture not showing when converting to pdf

Posted: Sat May 08, 2010 9:51 am
by RoryOF
What is the file format of your picture? Is it linked or embedded in the document?

Re: Picture not showing when converting to pdf

Posted: Sat May 08, 2010 10:16 am
by Enzo_za
RoryOF wrote:What is the file format of your picture? Is it linked or embedded in the document?
I have tried to link and embed, and still I can't see the picture.

Re: Picture not showing when converting to pdf

Posted: Sat May 08, 2010 10:50 am
by RoryOF
How are you making the PDF? Important: what format is your picture?

Picture in .png Exporting to PDF for me on OOo 3.2.1 on Ubuntu 10.4

Re: Picture not showing when converting to pdf

Posted: Sat May 08, 2010 11:13 am
by Enzo_za
RoryOF wrote:How are you making the PDF? Important: what format is your picture?

Picture in .png Exporting to PDF for me on OOo 3.2.1 on Ubuntu 10.4
Picture format is Jpeg

Exporting to PDF from the File >Export as PDF and save

Re: Picture not showing when converting to pdf

Posted: Sat May 08, 2010 11:21 am
by RoryOF
Just tried - a .jpg shows up OK for me in a .pdf file made using Export to PDF. You might need to upload a sample file to the forum so we can try it. Change any sensitive information, of course.

Re: Picture not showing when converting to pdf

Posted: Sat May 08, 2010 11:30 am
by Hagar Delest
Perhaps a regression of the 3.3 dev version.

Re: Picture not showing when converting to pdf

Posted: Wed May 12, 2010 2:39 pm
by Enzo_za
RoryOF wrote:Just tried - a .jpg shows up OK for me in a .pdf file made using Export to PDF. You might need to upload a sample file to the forum so we can try it. Change any sensitive information, of course.
Have uploaded the odt file and pdf.
hope this help you.

Many thanks for trying to assist.
Vincent
Invioce-forum.pdf
(60.06 KiB) Downloaded 1508 times
Invioce-forum.odt
Behind the jpeg there is some text which appears in the pdf file
(12.54 KiB) Downloaded 1062 times

Re: Picture not showing when converting to pdf

Posted: Wed May 12, 2010 2:42 pm
by jrkrideau
Enzo_za wrote:
RoryOF wrote:Just tried - a .jpg shows up OK for me in a .pdf file made using Export to PDF. You might need to upload a sample file to the forum so we can try it. Change any sensitive information, of course.
Have uploaded the odt file and pdf.
hope this help you.

Many thanks for trying to assist.
Vincent
Invioce-forum.pdf
Invioce-forum.odt

The figure is not coming through so it is just linked to the odt file not embedded.

Re: Picture not showing when converting to pdf

Posted: Wed May 12, 2010 3:01 pm
by Enzo_za
Ok, let's try again:
Invioce-forum.odt
(51.15 KiB) Downloaded 995 times
Invioce-forum.pdf
(60.13 KiB) Downloaded 950 times

Re: Picture not showing when converting to pdf

Posted: Wed May 12, 2010 4:30 pm
by Hagar Delest
Works fine for me with OOo 3.2 and W2k (with the build-in PDF export):
Invioce-forum.pdf
(62.96 KiB) Downloaded 940 times

Re: Picture not showing when converting to pdf

Posted: Fri May 14, 2010 12:15 pm
by golom
In case anyone is interested, I have the same problem, but with the presentation application:
http://user.services.openoffice.org/en/ ... 10&t=30586

Re:[Solved] Picture not showing when converting to pdf

Posted: Sat May 15, 2010 1:12 pm
by Enzo_za
Hi guys,
the problem seems to be with the OOo-dev 3.3.0 package. Loaded OOo 3.2 and it works fine. May have to report the bug. Thanks for all the input.

Re: [Solved] Picture not showing when converting to pdf

Posted: Wed May 19, 2010 9:09 am
by lokeshmf
Hi I am using OpenOffice 3.2... but picture is not coming

Re: [Solved] Picture not showing when converting to pdf

Posted: Thu May 20, 2010 5:03 pm
by Enzo_za
lokeshmf wrote:Hi I am using OpenOffice 3.2... but picture is not coming
try following the instructions on this page; http://user.services.openoffice.org/en/ ... 29#p137887

Re: [Solved] Picture not showing when converting to pdf

Posted: Mon May 24, 2010 1:11 pm
by lokeshmf
I tried .... But still i am not getting the images.

Re: [Solved] Picture not showing when converting to pdf

Posted: Wed Jan 10, 2018 8:47 am
by puneetmack
I am using Nreco, for Html to pdf or Html to Odt(open office converter) but I am not getting image inside odt file after download.
In Addition there is one more problem, I want to add Header and footer to odt file which is not supporting here. I think which is Impossible with Nreco, becoz It doesn't support opeen office document(odt) file. If any other approach is there - Html to ODT file export please let me know.

Code: Select all

<div style="float:right; width:49%; text-align:right"><img src="@(Url.Content("~/Content/img/sp-logo.jpg"))" width="225" height="44" alt="Logo" /></div>

Code: Select all

HtmlToPdfConverter htmltoPdfObj = new HtmlToPdfConverter();
                htmltoPdfObj.Orientation = PageOrientation.Default;
                htmltoPdfObj.CustomWkHtmlArgs = "--margin-top 22 --header-spacing 10 --margin-bottom 20";
                byte[] pdfContents = htmltoPdfObj.GeneratePdf(this.GetPDFScript() + htmlContractData + "</body></html>");
                Response.Clear();
                Response.Charset = "";
                Response.ContentType = "application/vnd.oasis.opendocument.text";
                string strFileName = "GenerateDocument" + ".odt";
                Response.AddHeader("Content-Disposition", "inline;filename=" + strFileName);
                Response.Write(htmlContractData);
                Response.End();