Pdf document sizing

Hi

Please provide sample code for sizing the pdf document. I’m trying to create a view proof for the business card but wasn’t able to size it correctly. Also, how to set landscape mode.

Thanks

Dear VNetBoy,

Thanks for your consideration.

Here is an example:


[XML]
<?xml version="1.0" encoding="utf-8" ?>



this is text content





[C#]
Pdf pdf = new Pdf();

Section section = new Section(pdf);
section.PageInfo.PageHeight = 400;
section.PageInfo.PageWidth = 300;
section.IsLandscape = true;

pdf.Sections.Add(section);

Text text1 = new Text(section);
section.Paragraphs.Add(text1);

Segment segment1 = new Segment(text1);
text1.Segments.Add(segment1);
segment1.Content = “this is text content”;

pdf.Save(…);


[VisualBasic]
Dim pdf As Pdf = New Pdf()

Dim section As Section = New Section(pdf)
section.PageInfo.PageHeight = 400
section.PageInfo.PageWidth = 300
section.IsLandscape = True

pdf.Sections.Add(section)

Dim text1 As Text = New Text(section)
section.Paragraphs.Add(text1)

Dim segment1 As Segment = New Segment(text1)
text1.Segments.Add(segment1)
segment1.Content = “this is text content”

pdf.Save(…)


Thanks

I have another question. Do you have a sample code for adding a blank row in a table?

Dear VNetBoy,

Thanks for your consideration.

Please download the latest hot fix first.

Empty row is not supported directly. You should use row with empty cell like this:

<Row>
    <Cell></Cell>
</Row>