Beispiel #1
0
        private static void AddXYZ(FitObject xyzObject, XmlElement dest, XmlDocument document)
        {
            XmlElement xyz = document.CreateElement(XfdfConstants.XYZ_CAPITAL);

            //all required
            xyz.SetAttribute(XfdfConstants.PAGE_CAPITAL, xyzObject.GetPage().ToString());
            xyz.SetAttribute(XfdfConstants.LEFT, XfdfObjectUtils.ConvertFloatToString(xyzObject.GetLeft()));
            xyz.SetAttribute(XfdfConstants.BOTTOM, XfdfObjectUtils.ConvertFloatToString(xyzObject.GetBottom()));
            xyz.SetAttribute(XfdfConstants.RIGHT, XfdfObjectUtils.ConvertFloatToString(xyzObject.GetRight()));
            xyz.SetAttribute(XfdfConstants.TOP, XfdfObjectUtils.ConvertFloatToString(xyzObject.GetTop()));
            dest.AppendChild(xyz);
        }
Beispiel #2
0
        private static void AddFitR(FitObject fitRObject, XmlElement dest, XmlDocument document)
        {
            XmlElement fitR = document.CreateElement(XfdfConstants.FIT_R);

            //all required
            fitR.SetAttribute(XfdfConstants.PAGE_CAPITAL, fitRObject.GetPage().ToString());
            fitR.SetAttribute(XfdfConstants.LEFT, XfdfObjectUtils.ConvertFloatToString(fitRObject.GetLeft()));
            fitR.SetAttribute(XfdfConstants.BOTTOM, XfdfObjectUtils.ConvertFloatToString(fitRObject.GetBottom()));
            fitR.SetAttribute(XfdfConstants.RIGHT, XfdfObjectUtils.ConvertFloatToString(fitRObject.GetRight()));
            fitR.SetAttribute(XfdfConstants.TOP, XfdfObjectUtils.ConvertFloatToString(fitRObject.GetTop()));
            dest.AppendChild(fitR);
        }
Beispiel #3
0
        private static void AddFitH(FitObject fitHObject, XmlElement dest, XmlDocument document)
        {
            XmlElement fitH = document.CreateElement(XfdfConstants.FIT_H);

            //all required
            fitH.SetAttribute(XfdfConstants.PAGE_CAPITAL, fitHObject.GetPage().ToString());
            fitH.SetAttribute(XfdfConstants.TOP, XfdfObjectUtils.ConvertFloatToString(fitHObject.GetTop()));
            dest.AppendChild(fitH);
        }