From 599fd8e4835813b3695edd6b7966e63552aa60a7 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 29 Oct 2014 14:05:12 +0000 Subject: [PATCH] Fixed the logic so that all bookmarks position the PDF properly. High Level Steps will position at the correct location on a page. Sections and subsections wll position on the correct page. --- PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index d6203224..2b7f9454 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -551,7 +551,9 @@ namespace Volian.Print.Library } else { - PdfOutline pdo = new PdfOutline(MyPdfOutlines[lev-1], pb.PdfDestination,Regex.Replace(pb.Title, @"\\{Prerequisite Step: .*?\\}", ""), false); + PdfDestination dest =pb.PdfDestination; + if(dest==null) dest = new PdfDestination(PdfDestination.FIT); + PdfOutline pdo = new PdfOutline(MyPdfOutlines[lev-1], dest,Regex.Replace(pb.Title, @"\\{Prerequisite Step: .*?\\}", ""), false); if (MyPdfOutlines.Count == lev) MyPdfOutlines.Add(pdo); else