page element is adding in bottom

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v10)  /  page element is adding in bottom

DynamicPDF CoreSuite for .NET (v10) Forum

 Aug 23 2019 2:57 AM
I want to add label in the top of each page but for some pdf it is coming in bottom

            MergeDocument document = new MergeDocument(@"C:\Users\783511\source\repos\DynamicPdf\DynamicPdf\input1.pdf");
          
            foreach (Page page in document.Pages)
            {

                // Create the string and label
                string text = "This is the dark blue, centered text at a 15 degree angle contained in the label.";
                Label label = new Label(text, 0, 0, 512, 14, Font.Helvetica, 14, TextAlign.Center, RgbColor.DarkBlue);

                // Add the label to the page
                page.Elements.Add(label);
            }
            document.Draw(@"C:\Users\783511\source\repos\DynamicPdf\DynamicPdf\output.pdf");

Please help me on this.We are using licensed version also.
 Aug 23 2019 8:09 AM
Posted by a ceTe Software moderator
Hello,

It looks like the page on which you are seeing this behavior is rotated to some angle. Please send over the following information to support@dynamicpdf.com so we can look into it further.

1.        Source PDF using which you are seeing this behavior.
2.        Output PDF.
3.        Exact version and build number of the DynamicPDF DLL file used in the application. You can get this information in DLL references properties (Version and Description fields) in Visual Studio.

Also please include the link for the forum post in your email.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 6:17 AM.