iTextSharp.text.Document.OpenDocument C# (CSharp) Метод

OpenDocument() публичный Метод

Opens the document.
Version for languages that are not case-dependant. Once the document is opened, you can't write any Header- or Meta-information anymore. You have to open the document before you can begin to add content to the body of the document.
public OpenDocument ( ) : void
Результат void
        public virtual void OpenDocument()
        {
            Open();
        }

Usage Example

Пример #1
0
        public PDFHelper(float width, float height)
        {
            m_width  = width;
            m_height = height;

            m_doc    = new iTextSharp.text.Document(new iTextSharp.text.Rectangle(0, 0, Width, Height));
            m_stream = new System.IO.MemoryStream();
            m_writer = iTextSharp.text.pdf.PdfWriter.GetInstance(m_doc, m_stream);
            m_doc.OpenDocument();
            m_canvas = Writer.DirectContent;
            Canvas.SetColorStroke(BaseColor.BLACK);
            Canvas.SetColorFill(BaseColor.WHITE);
        }
All Usage Examples Of iTextSharp.text.Document::OpenDocument