|
@@ -0,0 +1,69 @@
|
|
|
|
+using System;
|
|
|
|
+using System.Collections.Generic;
|
|
|
|
+using System.Linq;
|
|
|
|
+using System.Text;
|
|
|
|
+using System.Threading.Tasks;
|
|
|
|
+using System.Windows;
|
|
|
|
+using System.Windows.Controls;
|
|
|
|
+using System.Windows.Data;
|
|
|
|
+using System.Windows.Documents;
|
|
|
|
+using System.Windows.Input;
|
|
|
|
+using System.Windows.Media;
|
|
|
|
+using System.Windows.Media.Imaging;
|
|
|
|
+using System.Windows.Navigation;
|
|
|
|
+using System.Windows.Shapes;
|
|
|
|
+
|
|
|
|
+namespace Compdfkit_Tools.PDFControl
|
|
|
|
+{
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// Interaction logic for HomePageControl.xaml
|
|
|
|
+ /// </summary>
|
|
|
|
+ public partial class HomePageControl : UserControl
|
|
|
|
+ {
|
|
|
|
+ private List<CustomItem> customItems = new List<CustomItem>()
|
|
|
|
+ {
|
|
|
|
+ new CustomItem{TitleText = "Viewer", DescriptionText="View PDFs with tools like display modes, navigation, reading themes, scrolling, zooming, text searching, text reflow, split viewer, etc."},
|
|
|
|
+ new CustomItem{TitleText="Annotations", DescriptionText="Annotate and markup PDFs with notes, links, texts, line, square, arrow, circle, highlight, underline, squiggly, strikeout, stamps, ink, signature, sound, etc. Allow to create, delete, edit, import, export, and flatten PDF annotations." },
|
|
|
|
+ new CustomItem{TitleText="Forms", DescriptionText="Create, delete, edit, fill, flatten, import, and export forms. Support a wide array of PDF form fields including text field, check box, radio button, list box, combo button, push button, and signatures."},
|
|
|
|
+ new CustomItem{TitleText="Signature", DescriptionText="Sign PDFs with digital signatures and electronic signatures. Choose the drawn, image, or typed signatures and sign files conveniently. Or sign with your digital ID securely.\r\n"},
|
|
|
|
+ new CustomItem{TitleText="Document Editor", DescriptionText="Process PDF pages and files. Add, insert, replace, extract, reverse, move, copy, paste, rotate, delete, crop, scale, etc."},
|
|
|
|
+ new CustomItem{TitleText="Content Editor", DescriptionText="Edit the text and images with ComPDFKit Content Editor. Give you the freedom to adjust the size, position, style, font, etc.\r\n"},
|
|
|
|
+ new CustomItem{TitleText="Security", DescriptionText="Secure your documents using AES-128, AES-256, or RC4 encryption and decrypt PDFs. Customize permissions, edit headers & footers, change the background, insert or remove Bates numbers for indexing, etc.\r\n"},
|
|
|
|
+ new CustomItem{TitleText="Redaction", DescriptionText="Use redaction to remove sensitive images, text, and vector graphics, that can't be recovered after applying the redaction. Support customizing redaction appearance and choosing an area or searching for specific text to redact.\r\n"},
|
|
|
|
+ new CustomItem{TitleText="Watermark", DescriptionText="Create, insert, and remove text or image watermarks to brand your users' work and discourage its unauthorized use.\r\n"},
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ public HomePageControl()
|
|
|
|
+ {
|
|
|
|
+ InitializeComponent();
|
|
|
|
+ ImportFeatures();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private void ImportFeatures()
|
|
|
|
+ {
|
|
|
|
+ if (FeaturesListControl != null)
|
|
|
|
+ {
|
|
|
|
+ foreach (CustomItem item in customItems)
|
|
|
|
+ {
|
|
|
|
+ FeaturesListControl.Items.Add(item);
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ FeaturesListControl.SelectionChanged -= FeaturesListControl_SelectionChanged;
|
|
|
|
+ FeaturesListControl.SelectionChanged += FeaturesListControl_SelectionChanged;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ private void FeaturesListControl_SelectionChanged(object sender, CustomItem e)
|
|
|
|
+ {
|
|
|
|
+ switch (e.TitleText) {
|
|
|
|
+ case "Watermark":
|
|
|
|
+ MessageBox.Show(e.TitleText + " is under development.");
|
|
|
|
+ break;
|
|
|
|
+ default:
|
|
|
|
+ MessageBox.Show(e.TitleText + " is under development.");
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|