Skip to main content
Participant
May 5, 2016
Question

Help editing rectangles in PDF using automation in vb.net

  • May 5, 2016
  • 3 replies
  • 803 views

Hello, I have a PDF generated by a utility that erroneously creates extra rectangles within the page. I would like to search through all objects in the generated PDF, see if it is a rectangle of a certain size, and delete it. I have looked at examples in the SDK download and can't seem to find examples using PdEdit, although I have read that those examples are in there.

Can anyone provide any guidance on how this might be possible using vb.net and my acrobat reader pro? I have a large number of files to process.

Any guidance or examples of code would be fantastic. I am a fairly new programmer.

Thank you very much for your time!

This topic has been closed for replies.

3 replies

lrosenth
Adobe Employee
Adobe Employee
May 5, 2016

The interfaces/APIs available to VB don't include PDEdit support.  You need to use C/C++ for that.

Karl Heinz  Kremer
Community Expert
Community Expert
May 5, 2016

And when lrosenth says C/C++, he means that you have to write an Acrobat plug-in using C/C++ - it's not sufficient to just have an external C/C++ application to use these APIs, you can only use them within an Acrobat plug-in (which adds a quite a bit of complexity to such a project).

lrosenth
Adobe Employee
Adobe Employee
May 5, 2016

And you need Acrobat and not Reader…

try67
Community Expert
Community Expert
May 5, 2016

[Question moved to said forum]

Bernd Alheit
Community Expert
Community Expert
May 5, 2016

Try the forum for Acrobat SDK.