Posts

Programmatically Insert Editable Textbox in PDF

Image
Textbox is one type of form fields in PDF, which allows users to enter data into PDF without any editing software. It is commonly used in a document to obtain information of the readers. This article presents how to insert editable textbox in a PDF programmatically using free  PDF API  in C#. This PDF library provides a class of  PdfTextBoxField , initialize a new object of the class and set it properties like Bounds ,  BounderWidth , then you can add the textbox to PDF document by  Form.Fields.Add ()  method. Using the code //Create a new object of PdfDoument, insert a page PdfDocument doc = new PdfDocument (); PdfPageBase page = doc.Pages.Add ( PdfPageSize .A4, new PdfMargins ()); //Set font, brush PdfFont font = new PdfFont ( PdfFontFamily .TimesRoman, 12f, PdfFontStyle .Bold); PdfBrush brush = PdfBrushes .Black; float x = 50; float y = 50; float tempX = 0; //Draw sting in Pdf string text = "Phone Number: " ; page.Canvas.Draw...

Part III: Examples of Ribbons Customization in SharePoint 2013

Image
this article in taken from  http://aaclage.blogspot.in/ This article is a follow up from my  Examples of Ribbons Customization in SharePoint Articles  with a collection of Custom Ribbons Actions. For this Article i provide 2 new Ribbon Custom Actions using JSOM call " Copy Document to another Folder " and " Copy ListItem with Metadata". Examples of Ribbons Customization in SharePoint 2013 http://aaclage.blogspot.ch/2014/04/examples-of-customization-of-ribbons-in.html Part II: Examples of Ribbons Customization in SharePoint 2013 http://aaclage.blogspot.ch/2015/12/part-ii-examples-of-ribbons.html Yes, i am aware of the new SharePoint 2016 JSOM for copy and move documents  in SharePoint 2016 like reference in the following link , but my example uses the File Object to copy the file to their destination url with some nice tricks .  Methods: SP.MoveCopyUtil.copyFile SP.MoveCopyUtil.copyFolder SP.MoveCopyUtil.moveFile SP.MoveCopyUtil...

Part II: Examples of Ribbons Customization in SharePoint 2013

Image
This article taken from  http://aaclage.blogspot.in/ Yes i am alive and still blogging.... My current work blocked a lot of my time and wasn't  SharePoint related.... yep, Management is blood sucker for development skills... But is Christmas  time   and i want to make something nice for you SharePoint readers for that i reviewed my analytic charts to see what people people requested in my blog and saw that Ribbon Customization was one of the top, the other other main one is "how to add links in document library".... I know is important and people really struggle with this topic, even today, but let's be serious i don't want to make a part 2 of "how to add links in document library" unless i create some scenario, maybe can be a topic for another article. As talked and making a follow up of my extensive article regarding about, Examples of Ribbons Customization in SharePoint 2013 http://aaclage.blogspot.ch/2014/04/examples-of-customizat...