Posted by a ceTe Software moderator
Hello,
You can set TrimBox dimensions without any problem using our DynamicPDF Merger for .NET product. You will need to use the ExtendedPageDimensions class to do this. Below is the sample code for it.
Dim document As Document = New Document()
Dim page As Page = New Page(590,690)
document.Pages.Add(page)
Dim pageDimensions As PageDimensions = page.Dimensions
Dim extendedPageDimensions As ExtendedPageDimensions = New ExtendedPageDimensions(pageDimensions.Edge,pageDimensions.Body)
extendedPageDimensions.TrimBox.Width = 100
extendedPageDimensions.TrimBox.Height = 100
extendedPageDimensions.TrimBox.Bottom = 100
page.Dimensions = extendedPageDimensions
document.Draw("C:\MyDocument.pdf")
If your application is targeting version 4.0 .NET framework then you will need to use our version 6 DynamicPDF Merger for .NET product dll. You will have to reference ceTe.DynamicPDF.40.dll in your application.
Please feel free to download the evaluation edition of version 6 DynamicPDF Merger for .NET product from our website at:
http://www.DynamicPDF.com/Products/DynamicPDFForNET/Merger/Download.csp.
Thanks,
ceTe Software Support Team.