forked from syncfusion/wpf-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PdfDemosViewModel.cs
84 lines (80 loc) · 13.6 KB
/
PdfDemosViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#region Copyright Syncfusion Inc. 2001-2020.
// Copyright Syncfusion Inc. 2001-2020. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// [email protected]. Any infringement will be prosecuted under
// applicable laws.
#endregion
using syncfusion.demoscommon.wpf;
using Syncfusion.Zugferd;
using System.Collections.Generic;
namespace syncfusion.pdfdemos.wpf
{
public class PdfDemosViewModel : DemoBrowserViewModel
{
public override List<ProductDemo> GetDemosDetails()
{
var productdemos = new List<ProductDemo>();
productdemos.Add(new PdfProductDemos());
return productdemos;
}
}
public class PdfProductDemos : ProductDemo
{
public PdfProductDemos()
{
this.Product = "PDF";
this.ProductCategory = "FILE FORMAT";
this.Tag = Tag.Updated;
this.Demos = new List<DemoInfo>();
this.Demos.Add(new DemoInfo() { SampleName = "Job Application", GroupName = "Product Showcase", DemoViewType = typeof(JobApplication), Description = "This sample demonstrates Essential PDF support for creating rich forms with various page settings and form actions." });
this.Demos.Add(new DemoInfo() { SampleName = "ZUGFeRD Invoice", GroupName = "Product Showcase", DemoViewType = typeof(ZugFerd), Description= "This sample demonstrates how to create ZUGFeRD PDF invoice using Essential PDF" });
this.Demos.Add(new DemoInfo() { SampleName = "Hello World", GroupName = "Getting Started", DemoViewType = typeof(HelloWorld), Description = "This sample demonstrates how to start with Essential PDF and create a PDF document with the text \"Hello World.\"" });
this.Demos.Add(new DemoInfo() { SampleName = "PDF Compression Level", GroupName = "Compression", DemoViewType = typeof(PDFCompressionLevel), Description = "This sample demonstrates the various compression technique that can be used with Essential Pdf." });
this.Demos.Add(new DemoInfo() { SampleName = "Compress Existing PDF", GroupName = "Compression", DemoViewType = typeof(CompressExistingPDF), Description = "This sample demonstrates how to compress the existing PDF document by using Essential Pdf." });
this.Demos.Add(new DemoInfo() { SampleName = "Text Flow", GroupName = "Drawing Text", DemoViewType = typeof(TextFlow), Description = "This sample demonstrates how large text from a text file can span multiple pages in a PDF document. This sample also explains events that are raised when each page begins and ends." });
this.Demos.Add(new DemoInfo() { SampleName = "RTL Support", GroupName = "Drawing Text", DemoViewType = typeof(RTLSupport), Description = "This sample demonstrates how the text of right-to-left [RTL] languages, like Arabic, can be rendered in a PDF document. It also demonstrates various alignments of text." });
this.Demos.Add(new DemoInfo() { SampleName = "Complex Script", GroupName = "Drawing Text", DemoViewType = typeof(ComplexScript), Description = "This sample demonstrates drawing complex script language text in the PDF document. It is possible to draw complex languages such as Thai, Hindi, Tamil, Kannada and more." });
this.Demos.Add(new DemoInfo() { SampleName = "Bullets and Lists", GroupName = "Drawing Text", DemoViewType = typeof(BulletsAndLists), Description = "This sample demonstrates Essential PDF's support for creating ordered and unordered lists. It also demonstrates how formatting can be applied to those lists." });
this.Demos.Add(new DemoInfo() { SampleName = "Multi Column HTML Text", GroupName = "Drawing Text", DemoViewType = typeof(MultiColumnText), Description = "This sample demonstrates Essential PDF's support for rendering a HTML-formatted string in a multicolumn format." });
this.Demos.Add(new DemoInfo() { SampleName = "OpenType Font", GroupName = "Drawing Text", DemoViewType = typeof(OpenTypeFont), Description = "This sample demonstrates how to draw a text with OpenType font in a PDF document." });
this.Demos.Add(new DemoInfo() { SampleName = "Barcode", GroupName = "Graphics", DemoViewType = typeof(Barcode), Description = "This sample demonstrates how to draw various sequences of vertical bars and spaces to represent numbers and other symbols. It typically consists of five parts: a quiet zone, a start character, data characters, a stop character, and another quiet zone.", Tag = Tag.Updated });
this.Demos.Add(new DemoInfo() { SampleName = "Drawing Shapes", GroupName = "Graphics", DemoViewType = typeof(DrawingShapes), Description = "This sample demonstrates how various shapes, like line, ellipse, circle, rectangle etc., can be drawn and paginated. It also explains various color spaces that are supported by Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Graphic Brushes", GroupName = "Graphics", DemoViewType = typeof(GraphicBrushes), Description = "This sample demonstrates the support for creating and filling shapes with the various types of brushes that are supported by Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Image Insertion", GroupName = "Graphics", DemoViewType = typeof(ImageInsertion), Description = "This sample demonstrates how to insert images in a PDF document using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Adventure Cycle Works", GroupName = "Tables", DemoViewType = typeof(AdventureCycle), Description = "This sample is demonstrates the support for built-in style in PdfGrid." });
this.Demos.Add(new DemoInfo() { SampleName = "Table Features", GroupName = "Tables", DemoViewType = typeof(TableFeatures), Description = "This sample demonstrates the advanced features for tables. This includes tables in headers, graphic objects in table cells, styles, and gradient colors." });
this.Demos.Add(new DemoInfo() { SampleName = "Digital Signature", GroupName = "Security", DemoViewType = typeof(DigitalSignature), Description = "This sample demonstrates how a PDF document can be secured with certificates and signed with either standard or author signatures." });
this.Demos.Add(new DemoInfo() { SampleName = "Digital Signature Validation", GroupName = "Security", DemoViewType = typeof(SignatureValidation), Description = "This sample demonstrates to validate the digital signature by using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Encryption", GroupName = "Security", DemoViewType = typeof(Encryption), Description = "This sample demonstrates how a PDF document can be protected with user and owner passwords, and how it can restrict users from accessing some functionalities, such as printing." });
this.Demos.Add(new DemoInfo() { SampleName = "Redaction", GroupName = "Security", DemoViewType = typeof(Redaction), Description = "This sample demonstrates the redaction of PDF documents. Redaction is used to remove confidential information from PDF document." });
this.Demos.Add(new DemoInfo() { SampleName = "Document Settings", GroupName = "Settings", DemoViewType = typeof(DocumentSettings), Description = "This sample demonstrates Essential PDF's support for setting document properties. It also explains how XMP properties can be set using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Page Settings", GroupName = "Settings", DemoViewType = typeof(PageSettings), Description = "This sample demonstrates the support for setting page-oriented properties such as page size, orientation, viewer preference, page view mode, and page transition. It also explains how transparency can be set." });
this.Demos.Add(new DemoInfo() { SampleName = "Headers and Footers", GroupName = "Settings", DemoViewType = typeof(HeadersAndFooters), Description = "This sample demonstrates how headers and footers with page numbers and images can be inserted using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Layers", GroupName = "Settings", DemoViewType = typeof(Layers), Description = "This sample demonstrates how multiple layers can be added to a page and how elements are drawn over each layer." });
this.Demos.Add(new DemoInfo() { SampleName = "Find PDF Corruption", GroupName = "Analyze Document", DemoViewType = typeof(FindPDFCorruption), Description = "This sample demonstrates the find corrupted PDF document can be used with Essential Pdf." });
this.Demos.Add(new DemoInfo() { SampleName = "Form Fill", GroupName = "User Interaction", DemoViewType = typeof(FormFilling), Description = "This sample demonstrates Essential PDF's form filling support." });
this.Demos.Add(new DemoInfo() { SampleName = "Interactive Features", GroupName = "User Interaction", DemoViewType = typeof(InteractiveFeatures), Description = "This sample demonstrates various interactive annotations in a PDF document that can be created using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Portfolio", GroupName = "User Interaction", DemoViewType = typeof(Portfolio), Description = "This sample demonstrates Essential PDF's Portfolio support." });
this.Demos.Add(new DemoInfo() { SampleName = "Annotations", GroupName = "User Interaction", DemoViewType = typeof(AnnotationFlatten), Description = "This sample demonstrates Essential PDF's support annotation flatten feature." });
this.Demos.Add(new DemoInfo() { SampleName = "Named Destination", GroupName = "User Interaction", DemoViewType = typeof(NamedDestination), Description = "This sample demonstrates Essential PDF's support for bookmark with named destination in PDF documents." });
this.Demos.Add(new DemoInfo() { SampleName = "XFA Form Creation", GroupName = "User Interaction", DemoViewType = typeof(XFAFormCreation), Description = "This sample demonstrates Essential PDF's support for creating XFA forms with various form fields such as text box, combo box, date time field, numeric field and so on." });
this.Demos.Add(new DemoInfo() { SampleName = "XFA Form Fill", GroupName = "User Interaction", DemoViewType = typeof(XFAFormFilling), Description = "This sample demonstrates filling and flattening XFA form fields present in the PDF document." });
this.Demos.Add(new DemoInfo() { SampleName = "Image Extraction", GroupName = "Import and Export", DemoViewType = typeof(ImageExtraction), Description = "This sample demonstrates Essential PDF's support for extracting images from an existing PDF document." });
this.Demos.Add(new DemoInfo() { SampleName = "Text Extraction", GroupName = "Import and Export", DemoViewType = typeof(TextExtraction), Description = "This sample demonstrates Essential PDF's support for extracting text from an existing PDF document." });
this.Demos.Add(new DemoInfo() { SampleName = "Excel to PDF", GroupName = "Import and Export", DemoViewType = typeof(ExceltoPDF), Description = "This sample demonstrates Essential PDF's support for converting Excel document to a PDF." });
#if !NET50
this.Demos.Add(new DemoInfo() { SampleName = "XPS to PDF", GroupName = "Import and Export", DemoViewType = typeof(XPStoPDF), Description = "This sample demonstrates Essential PDF's support for converting a XPS document to a PDF." });
#endif
this.Demos.Add(new DemoInfo() { SampleName = "PDF Conformance", GroupName = "Conformance", DemoViewType = typeof(PDFConformance), Description = "This sample demonstrates various PDF conformance support in Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "PDF To PDFA", GroupName = "Conformance", DemoViewType = typeof(PDFToPDFA1b), Description = "This sample demonstrates how to convert PDF document into PDF/A conformance document using Essential Pdf."});
this.Demos.Add(new DemoInfo() { SampleName = "Merge Documents", GroupName = "Modify Documents", DemoViewType = typeof(MergeDocuments), Description = "This sample demonstrates how to merge multiple PDF documents using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Split Document", GroupName = "Modify Documents", DemoViewType = typeof(SplitDocument), Description = "This sample demonstrates how to split an existing PDF document into multiple PDF documents." });
this.Demos.Add(new DemoInfo() { SampleName = "Overlay Documents", GroupName = "Modify Documents", DemoViewType = typeof(OverlayDocuments), Description = "This sample demonstrates Essential PDF's support for importing PDF documents as templates." });
this.Demos.Add(new DemoInfo() { SampleName = "Booklet", GroupName = "Modify Documents", DemoViewType = typeof(Booklet), Description = "This sample demonstrates how to create a booklet from an existing PDF document." });
this.Demos.Add(new DemoInfo() { SampleName = "Import and Stamp", GroupName = "Modify Documents", DemoViewType = typeof(ImportAndStamp), Description = "This sample demonstrates Essential PDF's support for importing a page from an existing PDF and stamping the PDF file." });
this.Demos.Add(new DemoInfo() { SampleName = "Autotag", GroupName = "Accessibility", DemoViewType = typeof(AutoTag), Description = "This sample demonstrates how to create a tagged PDF document using Essential PDF." });
this.Demos.Add(new DemoInfo() { SampleName = "Customtag", GroupName = "Accessibility", DemoViewType = typeof(CustomTag), Description = "This sample demonstrates how to create a tagged PDF by assigning the tags to the elements using Essential PDF" });
}
}
}