Why is PDF file size so small? [closed] - pdf

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have a few copies of textbooks this semester on PDF. These are 1000 page computer science textbooks full of graphics. When I downloaded it, it took just a few seconds which was amazing, I thought something had gone wrong. The entire textbook was 9.7 MB. I opened it up and sure enough, the entire textbook was there, all images and everything were loaded instantly (and I have a really terrible internet connection)
I am just wondering what amazing compression technique allows you to store 1000 pages of a textbook in under 10 MB?
Here is a screenshot of the file properties, I am so baffled.

A typical text page is between 3k and 6k tokens. So the text of your 1000 page book would fit in 6MB even without compression.
Normal compression tools can reduce plain ASCII text with something like 60-80%.
So lets say it's 75%, then you need 0.25 x 6MB = 1.5MB for the text. That leaves 8.5 MB for the pictures.
For vector based images like svg that's a lot, they are small and compress as well as text. But 8.5 MB does not leave room for a lot of embedded bitmaps.

Related

Adobe Illustrator PDF scaling up images [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 hours ago.
Improve this question
I truly need help in Adobe Illustrator PDF. I have many small PNG files saved from lost vector line drawings.
The problem is that PDF scales up any image file (JPEG or PNG alike) when saved in Adobe Illustrator. Although such PNG images are as big as 1920 pixels width size, they are about 50 KB. But when exporting a PDF file, the PDF file becomes almost 9 MB. Is there a way to configure the Illustrator PDF to not alter the image type or size, but rather embedding it as is? I also don't want it linked to an outside file, but rather embedded as is, without scaling it up to 9 MB.
I looked through the PDF settings, but there isn't anything to give me the option to embed images without scaling up. Even setting it to 72 ppi doesn't make a big difference.

size of database after restored from sql dump [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 3 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
i have 5 gb PostgreSQL dump file. I will restore it by psql command but I have no space on my computer (about 1 gb). I want to know, will the database take over than or equal to 5 gb?
A SQL dump is typically a lot smaller than the restored database, because it only contains the definition of indexes, not the actual index data. So you should expect the database to need at least 5GB after being restored. If it contains a lot of indexes it might be substantially be bigger.
The only situation where a SQL dump might be bigger than the restored size is, if the dump contains a lot of text data that is longer than approximately 2KB. Any text value exceeding that size will automatically be compressed. But still it's very unlikely that the restored size will be 5 times smaller than the dump.

Photoshop PDF looks different in another reader [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
When i save a .psd to a Photoshop PDF, some fonts don't look like they looked in Photoshop.
They are not completely filled like they are in Photoshop. See the attachments:
This is how it looks like in PhotoShop:
https://s30.postimg.org/hhzop7ksh/Screen_Shot_2014_12_15_at_13_32_23.png
And this is what it looks like in, for example, google chrome's PDF reader.
https://s30.postimg.org/v06l1hwxt/Screen_Shot_2014_12_15_at_13_43_54.png
As you see, there is a white area in the font. How do I fix this?
I bet the PDF you created from Photoshop did not embed all fonts used by the PDF.
The consequence is that any PDF reader having to deal with this document needs to use a substitute font.
How to fix this? The first step is: make sure your Photoshop-created PDF does embed all the fonts it uses. (Then see, if that is already doing what you expect, or if there are more fixes needed.)

How to make InDesign's epub file vs. PDF file compatible? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
We used Adobe inDesign to design story books. We need both the PDF file as well as epub file. Since we all view in PDF during the process, the final clear product in PDF, when we export as epub file, it's huge. It all messed up the original design. What can we do?
Why did it happen?
I've worked on ONE project going from InDesign to ePub about two years ago - and you are right it is a mess. It didn't understand which local overrides to keep and practically every paragraph had style="localoverride1 localoverride2 substyle3 etc" in it. It was a mess to sort and clean up.
After that miserable experience we've found that it is better to view PDF and ePub as two separate products. Our workflow takes source XML and goes EITHER into InDesign OR through an XSLT to make an ePub. We no longer use InDesign to attempt to make ePubs - with an XSLT there is a LOT more control over the look and feel of the final product.
However if you are dead set on using InDesign - I've heard that it does fixed layout "epub" fairly well (basically it ends up being a bunch of images - it's not reflowable).

Can Malware infect a shared server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
Hi there Ladies and Gents
I am asking this question because this weekend ahas seen me go from a fully haired man to a bold man in let them 24 hours. Google found malware on three site we are running on a shared server. All the files are HTML or Java. I have done some research and this Malware software put a load of numbers and letters at the bottom of the HTML pages. So, I have cleaned the files off the server, and replaced them with clean files from our own hard drives. But within a few minutes the files are infected again. Then looking at the file, there are no bits of code. So when I go back to firefox and look again, after clearing the cache the same thing happens again, the red screen! I am just wondering if, there could be a infection on the shared server and it could be infecting more than just our three website?
Sorry it's long winded - No sleep for 48 hours sorting this out and rebuilding the sites on another server we trust.
Kind regards to all who read this message.
John
Yes. it is possible for malware to infect a whole server.