/// <summary>
        /// Adds a PdfScriptObject to the page that draws an XObject.
        /// </summary>
        public static PdfObjectRef DrawXObjectRef(this PdfPageWriter page, double x, double y, PdfObjectRef xObjRef, double width)
        {
            var obj = new PdfScriptObject();

            obj.DrawExternalObject(page.DocumentWriter.GetNameOfXObject(xObjRef));
            return(page.WriteObject(obj));
        }