[Solved] Picture not showing when converting to pdf

Discuss the word processor
Post Reply
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

[Solved] Picture not showing when converting to pdf

Post 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)
Last edited by Enzo_za on Sat May 15, 2010 1:13 pm, edited 1 time in total.
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
User avatar
RoryOF
Moderator
Posts: 35209
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Picture not showing when converting to pdf

Post by RoryOF »

What is the file format of your picture? Is it linked or embedded in the document?
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

Re: Picture not showing when converting to pdf

Post 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.
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
User avatar
RoryOF
Moderator
Posts: 35209
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Picture not showing when converting to pdf

Post 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
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

Re: Picture not showing when converting to pdf

Post 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
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
User avatar
RoryOF
Moderator
Posts: 35209
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Picture not showing when converting to pdf

Post 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.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
Hagar Delest
Moderator
Posts: 33625
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Picture not showing when converting to pdf

Post by Hagar Delest »

Perhaps a regression of the 3.3 dev version.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

Re: Picture not showing when converting to pdf

Post 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 1463 times
Invioce-forum.odt
Behind the jpeg there is some text which appears in the pdf file
(12.54 KiB) Downloaded 1041 times
Last edited by Enzo_za on Wed May 12, 2010 2:44 pm, edited 1 time in total.
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
jrkrideau
Volunteer
Posts: 3816
Joined: Sun Dec 30, 2007 10:00 pm
Location: Kingston Ontario Canada

Re: Picture not showing when converting to pdf

Post 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.
LibreOffice 7.3.7. 2; Ubuntu 22.04
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

Re: Picture not showing when converting to pdf

Post by Enzo_za »

Ok, let's try again:
Invioce-forum.odt
(51.15 KiB) Downloaded 977 times
Invioce-forum.pdf
(60.13 KiB) Downloaded 921 times
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
User avatar
Hagar Delest
Moderator
Posts: 33625
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Picture not showing when converting to pdf

Post 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 923 times
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
golom
Posts: 6
Joined: Fri May 14, 2010 12:02 pm

Re: Picture not showing when converting to pdf

Post 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
OpenOffice 3.2 on Windows XP
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

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

Post 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.
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
lokeshmf
Posts: 18
Joined: Mon May 03, 2010 9:53 am

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

Post by lokeshmf »

Hi I am using OpenOffice 3.2... but picture is not coming
OpenOffice 3.2
Windows 2000
User avatar
Enzo_za
Posts: 23
Joined: Mon Feb 23, 2009 9:41 am
Location: South Africa, Edenvale

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

Post 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
Vincent
OOo-4.1.0 Beta
Windows 7 Home Premium
lokeshmf
Posts: 18
Joined: Mon May 03, 2010 9:53 am

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

Post by lokeshmf »

I tried .... But still i am not getting the images.
OpenOffice 3.2
Windows 2000
puneetmack
Posts: 3
Joined: Wed Jan 10, 2018 8:31 am

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

Post 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();
Attachments
odt file screen shot
odt file screen shot
OpenOffice 4 Windows 7
Post Reply