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 for your consideration.
Here is an example:
<?xml version="1.0" encoding="utf-8" ?>
this is text content
Pdf pdf = new Pdf();
Section section = new Section(pdf);
section.PageInfo.PageHeight = 400;
section.PageInfo.PageWidth = 300;
section.IsLandscape = true;
Text text1 = new Text(section);
Segment segment1 = new Segment(text1);
segment1.Content = “this is text content”;
Dim pdf As Pdf = New Pdf()
Dim section As Section = New Section(pdf)
section.PageInfo.PageHeight = 400
section.PageInfo.PageWidth = 300
section.IsLandscape = True
Dim text1 As Text = New Text(section)
Dim segment1 As Segment = New Segment(text1)
segment1.Content = “this is text content”
I have another question. Do you have a sample code for adding a blank row in a table?