pdf - iTextSharp - when extracting a page it fails to carry over Adobe rectangle highlighting important info -


per following site...

http://forums.asp.net/t/1630140.aspx?extracting+pdf+pages+using+itextsharp

...i use function extractpages produce new pdf based on range of page numbers. problem noticed pdf had rectangle on 2nd page not extracted along page. causes me fear perhaps adobe comments not being carried on pages extracted.

is there way can adjust code take consideration bring on comments , objects rectangles new pdf when extractpages called? missing syntax or not available version 5.5.0 of itextsharp?

  1. your use of verb extract in context of extracting pages confusing. people think want extract text page. in reality, want import or copy pages.
  2. the example refer uses pdfwriter. that's wrong: should use pdfstamper (if 1 existing pdf involved) or pdfcopy (if multiple existing pdfs involved). see answer question how keep original rotate page in itextsharp (dll) find out why example on forums.asp.net really, bad example.
  3. the fact page has "a rectangle" irrelevant. maybe rectangle annotation. in case, you're throwing rectangle away using wrong example. maybe origin of page different 0,0...

if purpose create new pdf containing selection of pages of original pdf, please read answer function can use remove single page pdf using itext


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -