[Usage tips] using the shortcut menu to batch Delete watermarks in PDF V2: Used to delete the last object from time to time when the number of objects on the page

Source: Internet
Author: User

Author: zyl910.

I. Problem background

The previous "batch Delete watermarks in PDF using the click wizard" only applies when the number of objects on the page is determined. For example, there are always three objects on the page, of which 3rd are watermarks --

However, for some PDF files, the number of objects on the page is not fixed. For details, see --

Some pages have three objects, while others have four objects. In this case, the original script cannot be used. If you move down three times, the valid data will be deleted. If you move down four times, the page will be deleted by mistake.
How can we locate the last object accurately?

Ii. Solution

After repeated attempts on the adobat content panel, we found that shift + up and down arrow keys were used, and the focus was limited to the current level.
Therefore, you can use this to achieve the shortcut key blind operation --
1. Click the mouse to focus the keyboard on "Page 1;
2. Press the direction key "right" once to expand the subnode of "Page 1;
3. Press the Shift key and press the direction key "down" four times. Then, the shift key is released. In this case, Shift + up and down arrow keys limit the layers, and the keyboard focus stays accurately on the last object (watermark object. However, multiple objects are selected and cannot be deleted immediately.
4. Press the direction key "up" once to move up and cancel multiple selections;
5. Press the arrow key "down" once, so that the keyboard focus stays on the last object of "Page 1"-that is, the watermark object;
6. Press the "delete" key to delete the watermark object. After deletion, the keyboard focus will return to "Page 1 ";
7. Press the direction key "Left" once to collapse the subnodes of "Page 1;
8. Press the direction key "down" once to move the keyboard focus to "Page 2 ";
9. Repeat steps 2nd to 8th to delete all watermark objects on the page.

3. Compile scripts

Based on the above results. You can write the wizard script by pressing the key --

// Use the Shift key to intelligently reach the bottom item. setsimmode 2 // only method 2 can be used when the key combination is found. keypress "right", 1 // expand the page node delay 10 keypress "down", 1 // move down to delay 10 // move down to the last keydown 16, 1 // SHIFT + downkeypress 40, 1 keypress 40, 1 keypress 40, 1 keypress 40, 1 keyup 16, 1 delay 10 keypress "up", 1 // roll back one item first, cancel shift select delay 10 keypress "down", 1 // move down to the watermark object delay 10 keypress "delete", 1 // Delete the watermark delay 100 keypress "Left ", 1 // Contract The page node delay 10 keypress "down", 1 // move down to the next node delay 10

 

In actual use, you must use "setsimmode 2" to adjust the simulation mode. If the mode is 0, sometimes the Shift key combination fails. If Mode 1 is used, an error key is sometimes pressed to cause the focus to fly. Only Mode 2 can work stably, which means the speed is a little slower.

 

References --
[Using experience] using the key genie batch Delete watermarks in pdf ". http://www.cnblogs.com/zyl910/archive/2012/05/22/pdf_remove_watermake_marco.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.