Dear customers,
In this hot fix,
1. Justify and FullJustify, requested by Full Justification.
(1). Justify and fulljustify support single-segment text only.
(2). AlignmentType adds new member: Justify and FullJustify, used only in single-segment text and can’t be used for other paragraphs.
[Visual Basic]
Dim pdf As Pdf = New Pdf()
Dim section As Section = New Section(pdf)
pdf.Sections.Add(section)
Dim text1 As Text = New Text(section)
text1.Margin.Top = 30
text1.TextInfo.Alignment = AlignmentType.Justify
section.Paragraphs.Add(text1)
Dim segment1 As Segment = New Segment(text1)
text1.Segments.Add(segment1)
segment1.Content = "This is text content with ‘Justify’ alignment. " & _
"This is text content with ‘Justify’ alignment. " & _
"This is text content with ‘Justify’ alignment. " & _
“This is text content with ‘Justify’ alignment.”
Dim text2 As Text = New Text(section)
text2.Margin.Top = 30
text2.TextInfo.Alignment = AlignmentType.FullJustify
section.Paragraphs.Add(text2)
Dim segment2 As Segment = New Segment(text2)
text2.Segments.Add(segment2)
segment2.Content = "This is text content with ‘Justify’ alignment. " & _
"This is text content with ‘Justify’ alignment. " & _
"This is text content with ‘Justify’ alignment. " & _
“This is text content with ‘Justify’ alignment.”
pdf.Save(Response)
Response.End()
[C#]
Pdf pdf = new Pdf();
Section section = new Section(pdf);
pdf.Sections.Add(section);
Text text1 = new Text(section);
text1.Margin.Top = 30;
text1.TextInfo.Alignment = AlignmentType.Justify;
section.Paragraphs.Add(text1);
Segment segment1 = new Segment(text1);
text1.Segments.Add(segment1);
segment1.Content =
"This is text content with ‘Justify’ alignment. " +
"This is text content with ‘Justify’ alignment. " +
"This is text content with ‘Justify’ alignment. " +
“This is text content with ‘Justify’ alignment.”;
Text text2 = new Text(section);
text2.Margin.Top = 30;
text2.TextInfo.Alignment = AlignmentType.FullJustify;
section.Paragraphs.Add(text2);
Segment segment2 = new Segment(text2);
text2.Segments.Add(segment2);
segment2.Content =
"This is text content with ‘Justify’ alignment. " +
"This is text content with ‘Justify’ alignment. " +
"This is text content with ‘Justify’ alignment. " +
“This is text content with ‘Justify’ alignment.”;
pdf.Save(Response);
Response.End();
[XML]
<?xml version="1.0" encoding="utf-8" ?>
This is text content with ‘Justify’ alignment. This is text content with ‘Justify’ alignment.
This is text content with ‘Justify’ alignment.This is text content with ‘Justify’ alignment.
This is text content with ‘FullJustify’ alignment. This is text content with ‘FullJustify’ alignment.
This is text content with ‘FullJustify’ alignment.This is text content with ‘FullJustify’ alignment.
2. CCITT, requested by CCITT Conversion Bug.
(1). Add new enum CcittSubFormat
public enum CcittSubFormat
{
///
/// CCITT group3 1D format
///
Group31D = 0,
///
/// CCITT group3 2D format
///
Group32D = 1,
///
/// CCITT group4 format
///
Group4 = -1,
///
///
///
UnKnown = -2
}
(2). ImageInfo adds a new property CcittSubFormat. When you use CCITT image you need to set this property.
[Visual Basic]
Dim pdf As Pdf = New Pdf()
Dim section As Section = New Section(pdf)
section.PageInfo.PageWidth = 3500
section.PageInfo.PageHeight = 2500
pdf.Sections.Add(section)
Dim image1 As Aspose.Pdf.Image = New Aspose.Pdf.Image(section)
section.Paragraphs.Add(image1)
image1.ImageInfo.File = “Y:/Images/Bag11083_X4.fax”
image1.ImageInfo.ImageFileType = ImageFileType.Ccitt
image1.ImageInfo.CcittSubFormat = CcittSubFormat.Group4
image1.ImageWidth = 2560
image1.ImageHeight = 1779
pdf.Save(Response)
Response.End()
[C#]
Pdf pdf = new Pdf();
Section section = new Section(pdf);
section.PageInfo.PageWidth = 3500;
section.PageInfo.PageHeight = 2500;
pdf.Sections.Add(section);
Aspose.Pdf.Image image1 = new Aspose.Pdf.Image(section);
section.Paragraphs.Add(image1);
image1.ImageInfo.File = “Y:/Images/Bag11083_X4.fax”;
image1.ImageInfo.ImageFileType = ImageFileType.Ccitt;
image1.ImageInfo.CcittSubFormat = CcittSubFormat.Group4;
image1.ImageWidth = 2560;
image1.ImageHeight = 1779;
pdf.Save(Response);
Response.End();
[XML]
<?xml version="1.0" encoding="utf-8" ?> <BR>
<Pdf xmlns="Aspose.Pdf" CompressionLevel="0">
<Section PageMarginLeft="30" PageMarginRight="30" PageWidth="3500" PageHeight="2500">
<Image File="Y:/Images/Bag11083_X4.fax" Type="ccitt" CcittSubFormat="Group4" Width="2560" Height="1779">
</Image>
</Section>
</Pdf>
Please download the hotfix here.
Please download the new xsd file here .