3 Replies Latest reply: Jun 25, 2009 5:43 AM by lrosenth RSS

    How to draw a rectangle in PDF across multiple pages?

    anaghad Community Member

      Hi, is it possible to draw a rectangle in PDF spanning across pages using any acrobat SDK api's?

      The scenario is this:-

      I have created a plug-in in acrobat 7.0 to which marks a region with a rectangle like tool, just like we mark a region in paint.
      However, currently the marking is limited only till the end of the current page.
      Does anybody know how to modify acrobat SDK code to enable the marking of region expand ACROSS PAGES?
      For eg. I have a table in the PDF which spans across multiple pages. I want to select the entire table at one selection. How do i do this?

      Kindly reply ASAP.

        • 1. Re: How to draw a rectangle in PDF across multiple pages?
          lrosenth Adobe Employee

          You can't, since PDF is page based.

           

          BUT you can create multiple regions - one per page - that LOOKS LIKE it might be a single region...

          • 2. Re: How to draw a rectangle in PDF across multiple pages?
            anaghad Community Member

            Thanks Leonard for your reply, as always:)

             

            Ok, so creating a continuous region/rectangle across pages is not possible using an annot tool of acrobat SDK.

            And what exactly you mean by creation a 'LOOK ALIKE'? If we create two different rectangles its going to look separated, right?

            Also, for a single table spanning across pages, how would i handle drawing a region across the entire table so that the part on the other page also knows about the table header row?

            Can you point me to any examples where regions are drawn for table across pages and word finder method for it?

            • 3. Re: How to draw a rectangle in PDF across multiple pages?
              lrosenth Adobe Employee

              Correct - annotations can't span pages, so the UI doesn't let you draw such things.  You can select across pages, but that's not an actual element of PDF, it's something done in the UI outside the PDF context BUT even it too doesn't actually span it just looks that way ;).

               

              As to making it look "as good as possible" - that's up to you...