get pdf witth only trimbox

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  get pdf witth only trimbox

DynamicPDF CoreSuite for .NET (v8) Forum

 Feb 08 2021 5:43 AM
Hello is there a way to create a pdf with the content and size of another trim box pdf  ?

I create the Sub bellow, trying to change the box size, but it seems like all the box have the same size in 'extendedPageDimensions'

    Shared Sub RemoveBox(ByVal pOriginalPath As String, ByVal pDestinationPath As String)

            Dim document As MergeDocument = New MergeDocument(pOriginalPath)

            For i As Integer = 0 To document.Pages.Count - 1
                Dim pageDimensions As PageDimensions = document.Pages.Item(i).Dimensions
                Dim extendedPageDimensions As ExtendedPageDimensions = New ExtendedPageDimensions(pageDimensions.Edge, pageDimensions.Body)
            Next

            document.Draw(pDestinationPath)

        End Sub
 Feb 08 2021 10:29 AM
Posted by a ceTe Software moderator
Hi,

It's not clear from your description and example what you are wanting to do. Also, you are not setting the new ExtendedPageDimensions class to a page. You can set the trim box and other boxes on an ExtendedPageDimensions class independently as needed. If you require further assistance, please provide more details.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 11:08 PM.