This commit is contained in:
2011-06-16 10:40:45 +00:00
parent c22b8fd262
commit 94a8eef558
2 changed files with 35 additions and 12 deletions

View File

@@ -580,7 +580,6 @@ namespace Volian.Svg.Library
iTextSharp.text.Font font = FontFactory.GetFont(Font.Name, BaseFont.IDENTITY_H, true, fontSize, fontStyle, new Color(FillColor));
Phrase ph = BuildPhrase(text, fontSize, fontStyle, font);
ColumnText ct = new ColumnText(cb);
float x = scale.X(X);
float w = 0; // chk.GetWidthPoint();
@@ -819,6 +818,18 @@ namespace Volian.Svg.Library
get { return _CurrentPageNumber; }
set { _CurrentPageNumber = value; }
}
private bool _OnFoldoutPage = false;
public bool OnFoldoutPage
{
get { return _OnFoldoutPage; }
set { _OnFoldoutPage = value; }
}
private bool _CreatingFoldoutPage = false;
public bool CreatingFoldoutPage
{
get { return _CreatingFoldoutPage; }
set { _CreatingFoldoutPage = value; }
}
public SvgPageHelper(Svg mySvg)
{
_MySvg = mySvg;
@@ -846,12 +857,29 @@ namespace Volian.Svg.Library
}
public override void OnEndPage(PdfWriter writer, Document document)
{
base.OnEndPage(writer, document);
DrawBackground(writer.DirectContentUnder);
DrawPageList(writer.DirectContent);
DrawWatermark(writer.DirectContentUnder);
if(DoZoomOMatic)DrawZoomOMatic(writer.DirectContent);
CurrentPageNumber++;
if (!OnFoldoutPage)
{
base.OnEndPage(writer, document);
if (!CreatingFoldoutPage)
{
DrawBackground(writer.DirectContentUnder);
DrawPageList(writer.DirectContent);
DrawWatermark(writer.DirectContentUnder);
if (DoZoomOMatic) DrawZoomOMatic(writer.DirectContent);
}
CurrentPageNumber++;
}
else
{
if (!CreatingFoldoutPage)
{
DrawBackground(writer.DirectContentUnder);
DrawPageList(writer.DirectContent);
DrawWatermark(writer.DirectContentUnder);
if (DoZoomOMatic) DrawZoomOMatic(writer.DirectContent);
CurrentPageNumber++;
}
}
}
private PdfReader _BackgroundReader = null;
public PdfReader BackgroundReader