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 the Solid Framework ViewerPreferences object

You access the viewer preferences object by calling SolidFramework.Pdf.ViewerPreferences.Create static method with SolidFramework.Pdf.PdfDocument.Catalog as the paramater. SolidFramework.Pdf.PdfDocument is the document object that you already opened.

Using the Solid Framework ViewerPreferences object

Clique para executar o Vídeo/Tutorial

Steps for using the ViewerPreferences 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 object:


    PdfDocument document = new PdfDocument();

  4. Open the File:


    document.Open();
    ...

  5. Get the ViewerPreferences Object:


    SolidFramework.Pdf.ViewerPreferences preferences = _ SolidFramework.Pdf.ViewerPreferences.Create((SolidFramework.Pdf.Catalog) document.Catalog);
    ...

  6. Assign or read any of the ViewerPreferences values:


      if (preferences != null)
    {
      preferences.CenterWindow = true;
      preferences.FitWindow = true;

    ...


  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.