Is replacing PNGs with JPGs the solution to generating reliable images in PDF files?











up vote
0
down vote

favorite












I generated a PDF from a document that contains many images, mostly JPGs, but some PNGs.



In the doc (Libre Office .odt), the page in question looks like this:



enter image description here



When I "exported" the document to a PDF, that page appears like this:



enter image description here



Flummoxed, I copied the image from the .odt file and pasted it into Paint. I then selected File > Save to see what image type it defaulted to. It was PNG. So, on a hunch, I saved it as a JPG. I replaced the PNG file in the .odt file with the new JPG. I generated a new PDF. The image now generates correctly.



Was this a fluke, or are JPGs more reliable/the preferred image type for use in documents that will be PDFerized?



UPDATE



I replaced six images that were goofed up like this; they were all PNGs until I saved them as JPGs and then replaced the original PNGs with JPGs. On re-generating (exporting) as PDf, all problems were solved.



I did notice too, though, that at least one of the images was quite large (13 MB). I used Irfanview to "halve" it, which took it down to 2.3 MB; I then halved that image, which brought it down to about 690KB. It still looked fine at the size I needed.










share|improve this question




















  • 1




    You've got a [print-to-pdf] tag. Did you create the PDF by using a PDF printer driver, or the LO Writer Export to PDF? It's possible that the PDF conversion utility was the problem (it looks like it got indigestion from the pixel density of the image and didn't properly relate it to the image size). Whichever way you generated the PDF, try it the other way and see what you get (if you exported to PDF, load a print-to-pdf driver if you don't have one. Also, try using one of the free web conversion services on the file. (cont'd)
    – fixer1234
    Nov 18 at 14:47










  • It's also possible that LO is the problem. If you have access to Word, or say Google Doc, see what happens if you convert the file to .docx and then convert to PDF from that (if the problem is how LO stores it in the .odt, subsequent conversion to .docx may be too late to change it). It may also be fixable by resizing the image before embedding it in LO.
    – fixer1234
    Nov 18 at 14:47






  • 1




    You might find this informative: blog.idrsolutions.com/2010/04/…
    – fixer1234
    Nov 18 at 14:50






  • 1




    Another option to test: Microsoft Office Online is free: products.office.com/en-us/office-online/…. Go to Word, upload your .odt document and save it there as a PDF. See if that has the problem.
    – fixer1234
    Nov 18 at 15:17










  • @fixer1234: I used Libre Office's File > Export as PDF...
    – B. Clay Shannon
    Nov 18 at 15:45















up vote
0
down vote

favorite












I generated a PDF from a document that contains many images, mostly JPGs, but some PNGs.



In the doc (Libre Office .odt), the page in question looks like this:



enter image description here



When I "exported" the document to a PDF, that page appears like this:



enter image description here



Flummoxed, I copied the image from the .odt file and pasted it into Paint. I then selected File > Save to see what image type it defaulted to. It was PNG. So, on a hunch, I saved it as a JPG. I replaced the PNG file in the .odt file with the new JPG. I generated a new PDF. The image now generates correctly.



Was this a fluke, or are JPGs more reliable/the preferred image type for use in documents that will be PDFerized?



UPDATE



I replaced six images that were goofed up like this; they were all PNGs until I saved them as JPGs and then replaced the original PNGs with JPGs. On re-generating (exporting) as PDf, all problems were solved.



I did notice too, though, that at least one of the images was quite large (13 MB). I used Irfanview to "halve" it, which took it down to 2.3 MB; I then halved that image, which brought it down to about 690KB. It still looked fine at the size I needed.










share|improve this question




















  • 1




    You've got a [print-to-pdf] tag. Did you create the PDF by using a PDF printer driver, or the LO Writer Export to PDF? It's possible that the PDF conversion utility was the problem (it looks like it got indigestion from the pixel density of the image and didn't properly relate it to the image size). Whichever way you generated the PDF, try it the other way and see what you get (if you exported to PDF, load a print-to-pdf driver if you don't have one. Also, try using one of the free web conversion services on the file. (cont'd)
    – fixer1234
    Nov 18 at 14:47










  • It's also possible that LO is the problem. If you have access to Word, or say Google Doc, see what happens if you convert the file to .docx and then convert to PDF from that (if the problem is how LO stores it in the .odt, subsequent conversion to .docx may be too late to change it). It may also be fixable by resizing the image before embedding it in LO.
    – fixer1234
    Nov 18 at 14:47






  • 1




    You might find this informative: blog.idrsolutions.com/2010/04/…
    – fixer1234
    Nov 18 at 14:50






  • 1




    Another option to test: Microsoft Office Online is free: products.office.com/en-us/office-online/…. Go to Word, upload your .odt document and save it there as a PDF. See if that has the problem.
    – fixer1234
    Nov 18 at 15:17










  • @fixer1234: I used Libre Office's File > Export as PDF...
    – B. Clay Shannon
    Nov 18 at 15:45













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I generated a PDF from a document that contains many images, mostly JPGs, but some PNGs.



In the doc (Libre Office .odt), the page in question looks like this:



enter image description here



When I "exported" the document to a PDF, that page appears like this:



enter image description here



Flummoxed, I copied the image from the .odt file and pasted it into Paint. I then selected File > Save to see what image type it defaulted to. It was PNG. So, on a hunch, I saved it as a JPG. I replaced the PNG file in the .odt file with the new JPG. I generated a new PDF. The image now generates correctly.



Was this a fluke, or are JPGs more reliable/the preferred image type for use in documents that will be PDFerized?



UPDATE



I replaced six images that were goofed up like this; they were all PNGs until I saved them as JPGs and then replaced the original PNGs with JPGs. On re-generating (exporting) as PDf, all problems were solved.



I did notice too, though, that at least one of the images was quite large (13 MB). I used Irfanview to "halve" it, which took it down to 2.3 MB; I then halved that image, which brought it down to about 690KB. It still looked fine at the size I needed.










share|improve this question















I generated a PDF from a document that contains many images, mostly JPGs, but some PNGs.



In the doc (Libre Office .odt), the page in question looks like this:



enter image description here



When I "exported" the document to a PDF, that page appears like this:



enter image description here



Flummoxed, I copied the image from the .odt file and pasted it into Paint. I then selected File > Save to see what image type it defaulted to. It was PNG. So, on a hunch, I saved it as a JPG. I replaced the PNG file in the .odt file with the new JPG. I generated a new PDF. The image now generates correctly.



Was this a fluke, or are JPGs more reliable/the preferred image type for use in documents that will be PDFerized?



UPDATE



I replaced six images that were goofed up like this; they were all PNGs until I saved them as JPGs and then replaced the original PNGs with JPGs. On re-generating (exporting) as PDf, all problems were solved.



I did notice too, though, that at least one of the images was quite large (13 MB). I used Irfanview to "halve" it, which took it down to 2.3 MB; I then halved that image, which brought it down to about 690KB. It still looked fine at the size I needed.







pdf jpeg png print-to-pdf






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 at 15:47

























asked Nov 18 at 14:09









B. Clay Shannon

4011125




4011125








  • 1




    You've got a [print-to-pdf] tag. Did you create the PDF by using a PDF printer driver, or the LO Writer Export to PDF? It's possible that the PDF conversion utility was the problem (it looks like it got indigestion from the pixel density of the image and didn't properly relate it to the image size). Whichever way you generated the PDF, try it the other way and see what you get (if you exported to PDF, load a print-to-pdf driver if you don't have one. Also, try using one of the free web conversion services on the file. (cont'd)
    – fixer1234
    Nov 18 at 14:47










  • It's also possible that LO is the problem. If you have access to Word, or say Google Doc, see what happens if you convert the file to .docx and then convert to PDF from that (if the problem is how LO stores it in the .odt, subsequent conversion to .docx may be too late to change it). It may also be fixable by resizing the image before embedding it in LO.
    – fixer1234
    Nov 18 at 14:47






  • 1




    You might find this informative: blog.idrsolutions.com/2010/04/…
    – fixer1234
    Nov 18 at 14:50






  • 1




    Another option to test: Microsoft Office Online is free: products.office.com/en-us/office-online/…. Go to Word, upload your .odt document and save it there as a PDF. See if that has the problem.
    – fixer1234
    Nov 18 at 15:17










  • @fixer1234: I used Libre Office's File > Export as PDF...
    – B. Clay Shannon
    Nov 18 at 15:45














  • 1




    You've got a [print-to-pdf] tag. Did you create the PDF by using a PDF printer driver, or the LO Writer Export to PDF? It's possible that the PDF conversion utility was the problem (it looks like it got indigestion from the pixel density of the image and didn't properly relate it to the image size). Whichever way you generated the PDF, try it the other way and see what you get (if you exported to PDF, load a print-to-pdf driver if you don't have one. Also, try using one of the free web conversion services on the file. (cont'd)
    – fixer1234
    Nov 18 at 14:47










  • It's also possible that LO is the problem. If you have access to Word, or say Google Doc, see what happens if you convert the file to .docx and then convert to PDF from that (if the problem is how LO stores it in the .odt, subsequent conversion to .docx may be too late to change it). It may also be fixable by resizing the image before embedding it in LO.
    – fixer1234
    Nov 18 at 14:47






  • 1




    You might find this informative: blog.idrsolutions.com/2010/04/…
    – fixer1234
    Nov 18 at 14:50






  • 1




    Another option to test: Microsoft Office Online is free: products.office.com/en-us/office-online/…. Go to Word, upload your .odt document and save it there as a PDF. See if that has the problem.
    – fixer1234
    Nov 18 at 15:17










  • @fixer1234: I used Libre Office's File > Export as PDF...
    – B. Clay Shannon
    Nov 18 at 15:45








1




1




You've got a [print-to-pdf] tag. Did you create the PDF by using a PDF printer driver, or the LO Writer Export to PDF? It's possible that the PDF conversion utility was the problem (it looks like it got indigestion from the pixel density of the image and didn't properly relate it to the image size). Whichever way you generated the PDF, try it the other way and see what you get (if you exported to PDF, load a print-to-pdf driver if you don't have one. Also, try using one of the free web conversion services on the file. (cont'd)
– fixer1234
Nov 18 at 14:47




You've got a [print-to-pdf] tag. Did you create the PDF by using a PDF printer driver, or the LO Writer Export to PDF? It's possible that the PDF conversion utility was the problem (it looks like it got indigestion from the pixel density of the image and didn't properly relate it to the image size). Whichever way you generated the PDF, try it the other way and see what you get (if you exported to PDF, load a print-to-pdf driver if you don't have one. Also, try using one of the free web conversion services on the file. (cont'd)
– fixer1234
Nov 18 at 14:47












It's also possible that LO is the problem. If you have access to Word, or say Google Doc, see what happens if you convert the file to .docx and then convert to PDF from that (if the problem is how LO stores it in the .odt, subsequent conversion to .docx may be too late to change it). It may also be fixable by resizing the image before embedding it in LO.
– fixer1234
Nov 18 at 14:47




It's also possible that LO is the problem. If you have access to Word, or say Google Doc, see what happens if you convert the file to .docx and then convert to PDF from that (if the problem is how LO stores it in the .odt, subsequent conversion to .docx may be too late to change it). It may also be fixable by resizing the image before embedding it in LO.
– fixer1234
Nov 18 at 14:47




1




1




You might find this informative: blog.idrsolutions.com/2010/04/…
– fixer1234
Nov 18 at 14:50




You might find this informative: blog.idrsolutions.com/2010/04/…
– fixer1234
Nov 18 at 14:50




1




1




Another option to test: Microsoft Office Online is free: products.office.com/en-us/office-online/…. Go to Word, upload your .odt document and save it there as a PDF. See if that has the problem.
– fixer1234
Nov 18 at 15:17




Another option to test: Microsoft Office Online is free: products.office.com/en-us/office-online/…. Go to Word, upload your .odt document and save it there as a PDF. See if that has the problem.
– fixer1234
Nov 18 at 15:17












@fixer1234: I used Libre Office's File > Export as PDF...
– B. Clay Shannon
Nov 18 at 15:45




@fixer1234: I used Libre Office's File > Export as PDF...
– B. Clay Shannon
Nov 18 at 15:45















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376448%2fis-replacing-pngs-with-jpgs-the-solution-to-generating-reliable-images-in-pdf-fi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376448%2fis-replacing-pngs-with-jpgs-the-solution-to-generating-reliable-images-in-pdf-fi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa