Issue with Merge document and InitialPageZoom

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v11)  /  Issue with Merge document and InitialPageZoom

DynamicPDF CoreSuite for .NET (v11) Forum


I have two pdf documents frist one with one page (title cover) and second pdf with list of pages (190 pages).
And i have merged this two documents using ceTe.DynamicPDF.Merger.MergeDocument with MergeOptions.All and setting up InitialPageZoom =ceTe.DynamicPDF.PageZoom.FitWidth and finally drawn pdf (document.Draw()) using Draw method.

But when i have was open pdf after drawn , my pdf is showing second page (second document 1 st page) instead of first document (first page).
 And i have also setting up property InitialPage = 0 , but still  pdf is opening with second page, not first page.

    public static byte[] MergeDocument(List<byte[]> _lstbytes, DocPdfVersion _version, PdfPageZoom _zoom, PdfDocFormat _pdfDocFormat  )
            MergeDocument document = new MergeDocument
                PdfVersion = (ceTe.DynamicPDF.PdfVersion)_version,
                InitialPageZoom = (ceTe.DynamicPDF.PageZoom.FitWidth)_zoom,
                InitialPage = 0
            for (var i = 0; i < _lstbytes.Count ; i++)
                document.Append(new ceTe.DynamicPDF.Merger.PdfDocument(_lstbytes[i]), MergeOptions.All);
            document.InitialPage = 0;
            var bytes = document.Draw();
            return bytes;

Please look into this , we are licenced customers from
Posted by a ceTe Software moderator

Please try setting the initial page value to 1 and see it works for you.

 document.InitialPage = 1;

If you continue facing an issue, please send over the following information to so we can look into it further.

1. Input PDFs used for merging.
2. Output PDF.
3. Exact version and build number of the DynamicPDF Core Suite DLL file used in your application. You can find this information by right clicking on the DLL file>>Properties>>Details tab>>Product version. Take a screenshot of Details tab and send it over to us.

Please include link of this forum in your email to support.

ceTe Software Support Team
Thanks for your quick response.
It is working with  InitialPage = 1

But, I have another issues . Is there any option to set zoom percentage like 75% or 100% in document/pdf level.
my pdf is opening with 120% but it is not to good see.

Please help me..
Posted by a ceTe Software moderator

You can't specify an exact percentage, but you can set the InitalPageZoom property to one of the values of the PageZoom enumeration:
 - FitBox
 - FitHeight
 - FitPage
 - FitWidth
 - None
 - Retain

ceTe Software Support Team

All times are US Eastern Standard time. The time now is 12:32 PM.