Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Cropping a pdf but not getting right area

$
0
0
I am using aspose.pdf for cropping pdf from a region. following code I have used for cropping the pdf
Document document = new Document(AppDomain.CurrentDomain.BaseDirectory + "A1.pdf");
 PageCollection coll = document.Pages;       
 Aspose.Pdf.Rectangle pageRect = new Aspose.Pdf.Rectangle(30, 0, 690, 600);
 document.Pages[1].CropBox = pageRect;        
 document.Save(AppDomain.CurrentDomain.BaseDirectory + "A2.pdf");

in pdf rectangle I am passing values as
llx=left margin;
lly=margin from bottom 
urx=width of article
ury=height of article

but not getting right area but converting pdf to html using aspose with same value getting the right article.
 I don't know I am doing something wrong or problem in this function.

Please help me 
waiting for your reply

Viewing all articles
Browse latest Browse all 3131

Trending Articles