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

Flatten vs refry pdf and maintaining searchability

Community Beginner ,
Jan 11, 2021 Jan 11, 2021

A coworker marked up a drawing as a PDF file in Adobe Pro and would like to "print" to create a new revision of the PDF file. In the past, they've used some form of print to PDF for this, but sometimes searchability is lost, which is an important function downstream. 

 

I've read that this is called "refrying" a PDF, and is not a recommended practice.

 

Would it be better to "flatten" the PDF? I'm not entirely clear on what this does... is it just merging layers? Would searchability be maintained? Is a script the easiest way, like this.flattenPages()?

 

Thank you

TOPICS
Create PDFs , Edit and convert PDFs , JavaScript , PDF forms , Print and prepress , Scan documents and OCR
3.0K
Translate
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
1 ACCEPTED SOLUTION
Jan 11, 2021 Jan 11, 2021

Someone use my name in vain?  🙂

 

What you are trying to do is to incorporate any markup (including text, highlighting, etc.) into the base PDF file if I understand you correctly.

 

The simplest way of accomplishing this is by using the single JavaScript command:                   

this.flattenPages();

 

Alternatively, you can use the Acrobat Pro Preflight profile Flatten annotations and form fields in the Essentials preflight profile group which does the same thing.

 

“Refrying a PDF file” should never be used for this purpose. Any process that goes from PDF to PostScript and back has the potential of seriously degrading the quality of the original PDF file. Don't even think about this as a solution.

 

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)

View solution in original post

Translate
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
Community Beginner ,
Jan 11, 2021 Jan 11, 2021

@Dov Isaacs I saw your post on this thread:

https://community.adobe.com/t5/acrobat/adobe-pdf-printer-outputs-pdf-not-able-to-search/td-p/1096799...

If printing is not recommended, what other Acrobat Pro tools would work better here?

Translate
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
Community Expert ,
Jan 11, 2021 Jan 11, 2021

Yes, refried PDFs lose searchabaility. And yes, the Flatten pages script above is the best way to go. That script converts the drawing markups into actual page content, and it will remain searchable. I use it regularaly formy drawing markups as well. Works great!

Translate
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
Community Expert ,
Jan 11, 2021 Jan 11, 2021

Refrying a PDF file does not cause the text in it to become an image, and therefore it does not lose searchability.

Translate
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
Community Beginner ,
Jan 11, 2021 Jan 11, 2021

Why are the files losing searchability? Files exported as PDF out of the drafting software are always searchable, but after a few revisions of Adobe mark-ups its lost.

Translate
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
Community Expert ,
Jan 12, 2021 Jan 12, 2021

Can you share a sample PDF file?

Translate
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
Community Beginner ,
Jan 12, 2021 Jan 12, 2021

No, unfortunately I can't 

Translate
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
Jan 11, 2021 Jan 11, 2021

Someone use my name in vain?  🙂

 

What you are trying to do is to incorporate any markup (including text, highlighting, etc.) into the base PDF file if I understand you correctly.

 

The simplest way of accomplishing this is by using the single JavaScript command:                   

this.flattenPages();

 

Alternatively, you can use the Acrobat Pro Preflight profile Flatten annotations and form fields in the Essentials preflight profile group which does the same thing.

 

“Refrying a PDF file” should never be used for this purpose. Any process that goes from PDF to PostScript and back has the potential of seriously degrading the quality of the original PDF file. Don't even think about this as a solution.

 

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)
Translate
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
Community Beginner ,
Jan 12, 2021 Jan 12, 2021

Great, this answers my question. Thank you! 

Translate
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
LEGEND ,
Jan 12, 2021 Jan 12, 2021
LATEST

A little insight. Why would "refrying" a PDF break searchability?

Well, searchability means an app has to be able to extract the text accurately. To do that, one of two things is needed:

- simple fonts, used in a regular simple way, so the character codes are known

- any sort of font with a "ToUnicode" map, an Adobe invention to allow any PDF to be made searchable. 

 

When you print to PDF, only the visual appearance is preserved. Most simple fonts make it through. ToUnicode maps cannot make it through, because they aren't visual, there's nothing to send to a printer. So it's common to lose searchability when "refrying" PDF. I absolutely back up the idea that refrying is a terrible thing to do, and it is sad that so many people share this useless, dangerous advice and that people complain when it "doesn't work". This is like complaining that a wine bottle breaks when it is used as a hammer.

Translate
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