Downloaded pdf looks static






















Add a comment. B-Con B-Con 1, 12 12 silver badges 19 19 bronze badges. I don't want to give the information in the PDF to google but thanks. Using Google Docs is good advice, but "Put it through a PDF viewer that isn't vulnerable to the exploit" sounds strange to my ears. Usually, you don't know whether a particular viewer is vulnerable until it's too late.

DmitryGrigoryev if the exploit depends on javascript as almost all of them do, then a viewer that does not support javascript makes that exploit impossible. An exploit that depends on file attachments is rendered impossible by a viewer that doesn't support attachments.

An exploit that depends on retrieving data from a URL cannot work if the viewer does not support retrieving data from a URL. And so forth. DmitryGrigoryev I'm not sure what your point is. An exploit specifically targeted to work with Sumatra is possible, as I stated in my answer. Its likelihood is exceedingly small. No such method exists. Show 3 more comments. It should be quite tricky for a malware to get out of this. Community Bot 1. Luke Sheppard Luke Sheppard 2, 3 3 gold badges 14 14 silver badges 21 21 bronze badges.

Windows has strings too. Paging through the file looking for JS and calls to outside resources is quite effective if a bit slow. You shouldn't rely on strings for security: lcamtuf. What makes you think Sumatra is safer than any of the other PDF viewers out there? DmitryGrigoryev My reasons for thinking this are clearly stated in my answer. I recommend re-reading the first paragraph and looking at the link in the second paragraph. You will find your answers there.

There's no need to be rude. I did read your answer in full, yet I fail to see what makes Sumatra so special. Dmitry Grigoryev Dmitry Grigoryev 9, 1 1 gold badge 25 25 silver badges 53 53 bronze badges. What is consiered as "unsafe location"? For example, would that be triggered if you open a document from a USB thumbdrive? I don't use Acrobat anymore, but as far as I remember, yes, thumbdrives are considered unsafe locations. Trusted locations are your local drives, excluding problematic folders such as "Downloads" and "Temp", anything else is untrusted.

Lee Lee 31 1 1 silver badge 6 6 bronze badges. Considering this answer is written in , I wonder why you advocate using Sandboxie instead of the sandbox built-in into Adobe Reader. Not only complicated documents, like. Back to the list of topics. Jump to: navigation , search. Category : Template. Navigation menu Personal tools Log in. Bytes consist of 8 bits. PDFs are binary files, they need every bit, but some processes treat PDFs as if it were text files, and they remove the highest bit.

When that happens, the structure of the PDF consisting of ASCII characters is preserved which is why it opens in a viewer , but the binary content of the pages is corrupted which is why the pages are blank. This is not an iText problem. This is caused by a process that corrupts the bytes in the binary file.

Those four bytes should be four different "characters" with a value higher than or or 7F. BrunoLowagie, thanks for the prompt response and clarification. Could you, please, advise how to avoid such behaviour? Yes, I'm using iText 5.

Show 1 more comment. Active Oldest Votes. ByteArrayOutputStream pdfStream. Improve this answer. Great answer! This will be useful for further reference in case I see a question of someone who experiences the same problem. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.

Podcast An oral history of Stack Overflow — told by its founding team. Millinery on the Stack: Join us for Winter Summer? Bash, ! Featured on Meta. New responsive Activity page.

Linked 3. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled.



0コメント

  • 1000 / 1000