Flagging Hidden Text

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
jimtell
Posts: 6
Joined: Tue May 22 2007

Flagging Hidden Text

Post by jimtell » Fri Jun 05 2015

Using latest version of PDF Creator ActiveX. I'm trying to flag hidden text. In acrobat using Examine Document the text in the attached document shows as hidden. I find the text in the document but cannot find a way to determine that it is hidden. Currently I'm looking at the Hidden (false) and Visible (true) attributes. I'm also checking to see if anything is covering the text, nothing is. Finally I check to see if the TextColor matches the BackColor (no) or that TextColor is set to transparent (no). What am I missing?

Text in document: "03/13/15", "01:19", "03/", "13/", "15", "19", and "01:".

Can't upload attachment get extension pdf is not allowed.

jimtell
Posts: 6
Joined: Tue May 22 2007

Re: Flagging Hidden Text

Post by jimtell » Wed Jun 10 2015

Summary of Support answer.

When the Optimize flag (0x008) is used in the GetObjectsInRectangle call the color is being lost. Without this flag color attributes are properly loaded.

The only additional check needed to identify hidden text is to check for (foreground color == white && background color == transparent ) white is 16777215 or 0xFFFFFF transparent is -1

Post Reply