Cuminas DjVu SDK for .NET Framework
Document Constructor



Initializes Document object.
Overload List
OverloadDescription
Document Constructor(Chunk)Initializes the Document object with a chunk.  
Document Constructor(Page[])Initializes the Document object with an array of pages.  
Document Constructor(Page)Initializes the Document object with a page.  
Document Constructor(Stream)Initializes the Document object with a stream.  
Document Constructor(Uri)Initializes the Document object with an URL.  
Document Constructor(String)Initializes the Document object with an file.  
Document Constructor()Initializes the Document object with no content.  
Remarks

Document object should be disposed after using it.

 

Example
DjVu to TIFF conversion
Copy Code
using System;
using DjVu;
namespace DjVu2Image
{
    class DjVu2Image
    {
        static void Main(string[] args)
        {
            using (Document doc = new Document(args[0]))
            {
                doc.SaveTiffAs(args[1],
                    TiffBitonalEncodingMethod.CcittFax4,
                    TiffPictureEncodingMethod.Jpeg,
                    75);
            
                // Alternatively, you can save page by page
                //doc.Pages[0].SaveImageAs(args[1], ImageFormat.Jpeg, 70);
            }
        }
    }
}
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

Reference

Document Class
Document Members

Send Feedback