Produtos de Desktop :

Automação de Processos :

Desenvolvimento de Software:

 
Conversor de PDF para Word Clientes
 

Solid Framework - Amostra de Código

Este é um exemplo conciso para ajudar instalar e executar Solid Framework.Já foi testado com a Licença de Desenvolvedor Livre para Solid Framework utilizando diferentes versões do Visual Studio da Microsoft.

Read and Modify Document Information in PDF files

From the SolidFramework.Pdf.PdfDocument object that you’ve Opened you can access the info object.

Read and Modify Document Information in PDF files

Clique para executar o Vídeo/Tutorial

Steps for using the Info object

  1. Import the trial Developer License:


    License.Import(new StreamReader(@"C:\Users\Joe\license.xml"));

  2. Locate the PDF files using OpenFileDialog:


    OpenFileDialog OpFile = new OpenFileDialog();
    //show only PDF Files
    OpFile.Filter = "PDF Files (*.pdf)|*.pdf";

    if (OpFile.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    {
    ...

  3. Create a new PDFDocument objec:


    PdfDocument document = new PdfDocument();

  4. Add the file the user selected to the new PDFDocument:


    document.Path = OpFile.FileName;

  5. Open the document in Solid Framework:


    document.Open();

  6. Assign some document information values:


    document.Info.Author = "Sample Guru";
    document.Info.Subject = "My sample PDF";
    ...

  7. If the document has been modified, save it:


    if (document.IsModified)
    {
      document.Save(SolidFramework.Plumbing.OverwriteMode.ForceOverwrite);
    }
    ...

 


Mapa do site
©2000-2017 Solid Documents Limited - Todos os direitos reservados.