Le Tuesday 23 October 2007 17:30:14 Jonathan Sibony, vous avez écrit : > Hello, > > How do I set a Crop Box? (any painting will take place from that point > only within the new clipping path). > I see the PdfPage has a GetCropBox(), but how do I set one myself? > > Thanks in advance > jonathan
extracted from podofoimpose.cpp ================================================== PdfObject trimbox; PdfRect trim(extraSpace, extraSpace, destWidth, destHeight); trim.ToVariant(trimbox); PdfPage * newpage = targetDoc->CreatePage ( PdfRect ( 0.0, 0.0, pw, ph ) ); newpage->GetObject()->GetDictionary().AddKey( PdfName("TrimBox"), trimbox); ================================================== Would be the same for any box. -- Pierre Marchand ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users