Source/NFX/Media/PDF/PdfWriter.cs
/// <summary>
/// Writes PDF image element into file stream
/// </summary>
/// <param name="image">PDF image element</param>
Writes PDF image element into file stream
Writes PDF image element into file stream
internal void Write(ImageElement image)
    {
      var imageContent = new StringBuilder();
      imageContent.AppendLine("q");
      imageContent.AppendFormatLine("{0} 0 0 {1} {2} {3} cm", image.Width, image.Height, image.X, image.Y);
      imageContent.AppendFormatLine("{0} Do", image.GetXReference());
      imageContent.Append("Q");
      writeStreamedObject(image.ObjectId, imageContent.ToString());
    }
internal void Write ( ImageElement image ) { var imageContent = new StringBuilder ( ) ; imageContent . AppendLine ( " " ) ; imageContent . AppendFormatLine ( " " , image . Width , image . Height , image . X , image . Y ) ; imageContent . AppendFormatLine ( " " , image . GetXReference ( ) ) ; imageContent . Append ( " " ) ; writeStreamedObject ( image . ObjectId , imageContent . ToString ( ) ) ; }
Writes PDF image element into file stream
Writes PDF image element into file stream
image
ImageElement
PDF image element
PDF image element