iTextSharp.text.pdf.RandomAccessFileOrArray.ReOpen C# (CSharp) Метод

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

public ReOpen ( ) : void
Результат void
        public void ReOpen()
        {
            if (filename != null && rf == null)
                rf = new FileStream(filename, FileMode.Open, FileAccess.Read, FileShare.Read);
            Seek(0);
        }

Usage Example

 /// <summary>
 /// Does the actual work of subsetting the font.
 /// @throws IOException on error
 /// @throws DocumentException on error
 /// </summary>
 /// <returns>the subset font</returns>
 internal byte[] Process()
 {
     try
     {
         Rf.ReOpen();
         CreateTableDirectory();
         ReadLoca();
         FlatGlyphs();
         CreateNewGlyphTables();
         LocaTobytes();
         AssembleFont();
         return(OutFont);
     }
     finally
     {
         try
         {
             Rf.Close();
         }
         catch
         {
             // empty on purpose
         }
     }
 }
All Usage Examples Of iTextSharp.text.pdf.RandomAccessFileOrArray::ReOpen