Skip to content

Commit

Permalink
Merge pull request #2 from cedricmartel/pr/1
Browse files Browse the repository at this point in the history
merge back
  • Loading branch information
cedricmartel authored Sep 19, 2016
2 parents 33bd20c + 0831b12 commit 8f5eabf
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Moon.PDFTemplate/Image.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,14 @@ private void _init()
SetXandWidth(X, PDFDraw.Helper.GetFloatAttributeValue(WidthAttributeConstant, Attributes, 50) );
}


public override void SetXandWidth(float x, float width)

/// <summary>
/// Sets X position and width.
/// 20150203 :: Changed to virtual. Set internal vars.
/// </summary>
/// <param name="x"></param>
/// <param name="width"></param>
public override void SetXandWidth(float x, float width)
{
base.SetXandWidth(x, width);
}
Expand Down
2 changes: 1 addition & 1 deletion Moon.PDFTemplateItextSharp/Generators/BodyGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public BodyGenerator(PDFTemplate.PDFTemplate template, XmlNode bodyNodeXml)
}

/// <summary>
/// draw row & table items inside body.
/// draw row and table items inside body.
/// table items are treated as tables
/// </summary>
public void DrawBody(Hashtable data, IPDFDraw drawer)
Expand Down
Binary file modified external.references/itextsharp.dll
Binary file not shown.
Binary file modified external.references/itextsharp.xtra.dll
Binary file not shown.
5 changes: 4 additions & 1 deletion testPDFTemplateItextSharp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ public static void TestArStatementXML()
// need to load CJK b4 create PDFTemplateItextSharp
// itextsharp.dll 5.3.5 ok
// itextsharp.dll 5.1.3 not ok
iTextSharp.text.pdf.BaseFont.AddToResourceSearch("iTextAsian.dll"); // iTextAsian.dll 2.1.0.0
//iTextSharp.text.pdf.BaseFont.AddToResourceSearch("iTextAsian.dll"); // iTextAsian.dll 2.1.0.0

// istextsharp.dll 5.5.9 ok
iTextSharp.text.io.StreamUtil.AddToResourceSearch("iTextAsian.dll"); // iTextAsian.dll 2.1.0.0

Moon.PDFTemplateItextSharp.PDFTemplateItextSharp pdfTpl =
new Moon.PDFTemplateItextSharp.PDFTemplateItextSharp(@"file\ar_statement.xml");
Expand Down

0 comments on commit 8f5eabf

Please sign in to comment.