Exemplo n.º 1
0
        private static void AddFitB(FitObject fitBObject, XmlElement dest, XmlDocument document)
        {
            XmlElement fitB = document.CreateElement(XfdfConstants.FIT_B);

            //required
            fitB.SetAttribute(XfdfConstants.PAGE_CAPITAL, fitBObject.GetPage().ToString());
            dest.AppendChild(fitB);
        }
Exemplo n.º 2
0
        private static void AddFitV(FitObject fitVObject, XmlElement dest, XmlDocument document)
        {
            XmlElement fitV = document.CreateElement(XfdfConstants.FIT_V);

            //all required
            fitV.SetAttribute(XfdfConstants.PAGE_CAPITAL, fitVObject.GetPage().ToString());
            fitV.SetAttribute(XfdfConstants.LEFT, XfdfObjectUtils.ConvertFloatToString(fitVObject.GetLeft()));
            dest.AppendChild(fitV);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
        }