Hi there,
I'm testing with the .NET v10.31.0 (Build 41601) evaluation edition to replace our current iText library.
I've having an issue that when viewing the merged pdf in Acrobat Reader DC, it's either set to "Enable Scrolling" or bookmarks sidebar opens by default, by that I mean, I couldn't achieve both.
With this sample code I could achieve "Enable Scrolling", but the left sidebar for bookmarks is hidden be default.
//////////////////////////////////////////
MergeDocument document = new MergeDocument();
MergeOptions mergeOptions = MergeOptions.All;
if (createBookmarks == true)
{
//Create bookmark
mergeOptions.Outlines = false;
document.Outlines.Add(item.Key, new XYDestination(document.Pages.Count + 1, 0, 0));
}
document.Append(singlePDF, mergeOptions);
//////////////////////////////////////////
With this one I could achieve left sidebar displayed by default but it would be "Single Page View" in "Page Display"
//////////////////////////////////////////
MergeDocument document = new MergeDocument();
MergeOptions mergeOptions = MergeOptions.Append;
if (createBookmarks == true)
{
//Create bookmark
mergeOptions.Outlines = false;
document.Outlines.Add(item.Key, new XYDestination(document.Pages.Count + 1, 0, 0));
}
document.Append(singlePDF, mergeOptions);
//////////////////////////////////////////
I've tried to go with MergeOptions.Append and then set properties like mergeOptions.OpenAction = true; and mergeOptions.DocumentProperties = true; but none of those worked.
Could you please let me know if there's a way to achieve both? As this is one of the requirements from clients.
Thanks,
Wenshuo