Read cut-/dielines

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Re: Read cut-/dielines

DynamicPDF CoreSuite for .NET (v11) Forum

 Jan 06 2023 6:25 AM
Is it be possible to read the cut-/dieline-information in a pdf?
 Jan 06 2023 5:31 PM
Posted by a ceTe Software moderator
Hi,

If you are looking for CropBox, BleedBox and TrimBox dimensions then you can retrieve these values from an existing PDF page using DynamicPDF Core Suite for .NET product.

Here is a code sample.

           PdfDocument pdf = new PdfDocument(@"Source PDF file path");
            MergeDocument document = new MergeDocument(pdf);

            // Read CropBox values
            float cropBoxHeightLeft = document.Pages[0].Dimensions.CropBox.Left;
            float cropBoxHeightTop = document.Pages[0].Dimensions.CropBox.Top;
            float cropBoxHeightRight = document.Pages[0].Dimensions.CropBox.Right;
            float cropBoxHeightBottom = document.Pages[0].Dimensions.CropBox.Bottom;
            float cropBoxHeightValue = document.Pages[0].Dimensions.CropBox.Height;
            float cropBoxWidthValue = document.Pages[0].Dimensions.CropBox.Width;

            // Similarly for BleedBox
            float bleedBoxHeightValue = document.Pages[0].Dimensions.BleedBox.Height;
            float bleedBoxWidthValue = document.Pages[0].Dimensions.BleedBox.Width;
            // ...

            // Similarly for TrimBox
            float trimBoxHeightValue = document.Pages[0].Dimensions.TrimBox.Height;
            float trimBoxWidthValue = document.Pages[0].Dimensions.TrimBox.Width;
            // ...

Feel free to download fully functional evaluation edition of DynamicPDF Core Suite for .NET product from NuGet (Package ID: ceTe.DynamicPDF.CoreSuite.NET) or from our website here

Thanks,
ceTe Software Support Team
 Jan 09 2023 8:36 AM
No, I am not thinking of normal cropbox... Dielines are the "lines" that are used typically for packaging products with irregular shapes.

 Jan 09 2023 1:42 PM
Posted by a ceTe Software moderator
Hello,

There is no option to read cut/dieline information from a PDF using DynamicPDF product. You can extract text and can read form field values from a PDF. Please refer to the documentation on text extraction here and reading form field values here.

Thanks,
ceTe Software Support Team
 Jan 10 2023 6:52 AM
Ok - but is it possible to develop this functionality?
Measure the length of the dielines for example
 Jan 10 2023 1:33 PM
Posted by a ceTe Software moderator
Hi,

We will add this to our feature request list and if feasible we may include it in a future version of DynamicPDF Core Suite for .NET product.

Thanks,
ceTe Software Support Team
 Feb 21 2023 9:10 AM
A cut line is a line added using a spot color and is usually named something like CutContour, Thu-cut, Cutpath, V-Cut, etc.  So to reframe the question, is it possible to find a line associated with a spot color name and then get its coordinates for evaluation?
 Feb 21 2023 9:39 AM
Posted by a ceTe Software moderator
Hi,

Currently there is no option in the DynamicPDF Core Suite for .NET product to find a line associated with a spot color name and then get its coordinates.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 8:57 AM.