This is a concise sample to help get Solid Framework up and running. It has been tested with the Free Developer License for Solid Framework using different versions of Microsoft's Visual Studio.
From the SolidFramework.Pdf.PdfDocument object that you’ve Opened you can access the info object.
- Import the trial Developer License:
License.Import(new StreamReader(@"C:\Users\Joe\license.xml"));
- Locate the PDF files to using OpenFileDialog:
OpenFileDialog OpFile = new OpenFileDialog();
//show only PDF Files
OpFile.Filter = "PDF Files (*.pdf)|*.pdf";
if (OpFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
...
- Create a new PDFDocument objec:
PdfDocument document = new PdfDocument();
- Add the file the user selected to the new PDFDocument:
document.Path = OpFile.FileName;
- Open the document in Solid Framework:
document.Open();
- Assign some document information values:
document.Info.Author = "Sample Guru";
document.Info.Subject = "My sample PDF";
...
- If the document has been modified, save it:
if (document.IsModified)
{
document.Save(SolidFramework.Plumbing.OverwriteMode.ForceOverwrite);
}
...