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

How I could delete a page with a specific attribute ?

Guest
Mar 25, 2016 Mar 25, 2016

Hello.

I would like to know if it's possible to delete a group of a page in pdf which contains a specific property.

The main pdf contains more than 100 pages. On a few pages, there is a text property like "DoNotPrint".

At first I've tried to convert in XML this pdf, to gain a parent / child structure... and if I detect the attribute in a child node I could delete the parent node (and then the entire page).

But this pdf is full of graphicals diagrams... so this solution will not work.

That's why I'm trying to work directly on the pdf.

Could you tell me if it's possible ? I see that it's possible to delete a range of page, but could I do that with my condition ?

Thanks a lot !

TOPICS
Acrobat SDK and JavaScript , Windows
683
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

correct answers 1 Correct answer

LEGEND , Mar 28, 2016 Mar 28, 2016

Yes. There are only a few items added with the Professional version dealing with JavaScript. First is the access by the JavaScript editor to the document level JavaScript and the PDF optimizer that can perform batch processing including JavaScript on multiple PDF files.

Translate
LEGEND ,
Mar 25, 2016 Mar 25, 2016

If this is one PDF you could search for the words and then manually delete the pages.

It is also possible to use JavaScript to read each word on each page and identify the pages with the words and then use JavaScript to delete the specific pages.

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 ,
Mar 27, 2016 Mar 27, 2016

I think you need to define very precisely what you mean by an "attribute". If you can't define it in terms of the PDF standard, how would you see it or set it in the interface?

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
Guest
Mar 28, 2016 Mar 28, 2016

I've tried at home with a trial version of Acrobat Reader Pro DC, a sample script and a sample document. It's works very well.

Now I have to try with the real document... but my company have only Acrobat XI Standard, could I use javascript with this version ?

Thanks you very much

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 ,
Mar 28, 2016 Mar 28, 2016

Yes. There are only a few items added with the Professional version dealing with JavaScript. First is the access by the JavaScript editor to the document level JavaScript and the PDF optimizer that can perform batch processing including JavaScript on multiple PDF files.

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
Guest
Mar 28, 2016 Mar 28, 2016
LATEST

Thanks for that useful info

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