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.

Using PDF Thumbnail Control

The code below shows you how to display PDF pages as thumbnails using the Solid Framework thumbnail control. This control comes with many features such as rotate image, various thumbnail sizes and rearrange pages.

Using PDF Thumbnail Control

Clique para executar o Vídeo/Tutorial

Steps for Using the PDF Thumbnail Control

  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 Editable Thumbnail Control Using PagesModel:


    ...
      //Create a new PagesModel called model
       PagesModel model = new PagesModel();

       //Add the selected file to the model
       model.OpenPDF(OpFile.FileName);

     //Add the thumbnail control to the model
      thumbnails1.Model = model;
    }

    private void frmWebDocs_FormClosing(object sender, FormClosingEventArgs e)
    {
            //Manage what happens if the form is closed with no thumbnails loaded
        if (thumbnails1.Model != null)
            {
           thumbnails1.Model.Close();
            }
    }
    ...

 


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