• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

What does is this binary code mean %âãÏÓ, missing from some files

New Here ,
Dec 01, 2017 Dec 01, 2017

Copy link to clipboard

Copied

I work as a support engineer and get some customer files where the second entry is missing in text rendition of the PDF file.   When I replace it with the entry as shown below, the PDF file behaves as it should with our product.  This is what is missing sometimes - %âãÏÓ

If I save the file, then open the PDF file up again in Adobe Pro and save it, the PDF file works as expected.  We have some files from a customer that are created by Microsoft Reporting Services 10.0.0.0. 

My question is what is that second line of binary code for?  Also, if it is not there, what is the significance?

%PDF-1.6

%âãÏÓ

TOPICS
General troubleshooting

Views

3.4K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 01, 2017 Dec 01, 2017

It's actually not doing anything: The '%' at the beginning of the line marks anything following this '%' as a comment, so any PDF processor will skip over this line. The reason it's there is to force any application that tries to sense if the file contains binary data into binary mode. Some of these applications that try to sense if a file is plain text or binary only look at the first few hundreds (or tens) of characters, so by having non-ASCII text in the second line, such an application will

...

Votes

Translate

Translate
Community Expert ,
Dec 01, 2017 Dec 01, 2017

Copy link to clipboard

Copied

It's actually not doing anything: The '%' at the beginning of the line marks anything following this '%' as a comment, so any PDF processor will skip over this line. The reason it's there is to force any application that tries to sense if the file contains binary data into binary mode. Some of these applications that try to sense if a file is plain text or binary only look at the first few hundreds (or tens) of characters, so by having non-ASCII text in the second line, such an application will switch to binary mode. This was important when you transferred files via communication channels that default to text mode, which would then potentially corrupt binary data in a PDF file.

You are referring to "our product", I don't know what that product is and how it is processing PDF files, but it should not depend on that line being there.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 01, 2017 Dec 01, 2017

Copy link to clipboard

Copied

Thank you.  The product I am referring to scrubs PDF files for various metadata.  If that entry is not there, the scrubbed PDF file is blank or no text.  From your post, the cause of the blank file could be as you note, the binary data may become corrupt.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 23, 2021 Feb 23, 2021

Copy link to clipboard

Copied

LATEST

We are having similar issue. we are receiving PDF files from our Trading partner via SFTP and when we download the PDF file and try to open them, they are blank. How can we fix this issue. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines