Hello,

I must change the trimbox from existing PDf files in vb.net
This is the code but I get an error on the PageDic.Put

   Dim pageNum as integer
   Dim pdfdoc As New iTextSharp.text.pdf.PdfReader(outputPath)
   Dim pdfName As iTextSharp.text.pdf.PdfName

   For pageNum = 0 to pdfdoc.NumberOfPages
      Dim PageDic As iTextSharp.text.pdf.PdfDictionary = 
pdfdoc.GetPageN(pageNum)
      Dim TrimBoxSize As New iTextSharp.text.Rectangle(20,20,100,100)
      PageDic.Put(pdfName.TRIMBOX, TrimBoxSize)
   Next
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to