Apitron PDF Kit for .NET is now available in Xamarin components store and included in our download package. See its complete description on our website or the introduction post showing how to create “hello world” pdf file.
Below is a slightly modified “hello world” generation sample, showing how to achieve the same on iOS:
//
"Hello World" PDF generation sample, flow layout.
class
Program
{
static
void
Main(string[]
args)
{
ResourceManager
resourceManager = new
ResourceManager();
//
create document and set margin
FlowDocument
document = new
FlowDocument()
{ Margin
= new
Thickness(5)
};
document.Add(new
TextBlock("Hello
world with Apitron PDF Kit for .NET!")
{ Font
= new Font(StandardFonts.Helvetica,
20) });
string
fileName = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments),
"HelloWorld.pdf");
//
write the file to stream
using
(Stream
outputStream = File.Create(fileName))
{
document.Write(outputStream,
resourceManager, new
PageBoundary(Boundaries.A4));
}
}
}
Using our product you'll be able to create cross-platform PDF processing apps utilizing the same API on any system you target. Available for .Net/Mono, Xamarin.iOS and Xamarin.Android, it makes creation of desktop and mobile versions of your apps simpler by sharing PDF creation and manipulation logic between them.
Create, combine, merge, sign or edit PDFs; extract text, images or other content them.It's a complete toolkit able to solve any PDF-related task.
Below are several screenshots, showing sample apps (included in package) in action:
iOS sample app |
result produced by iOS sample app |
Android sample app |
You may obtain a license for Apitron's software and save, by purchasing directly from our store. Should you have any questions just let us know and we'll be happy to assist you.
No comments:
Post a Comment