Example #1
0
        public List <StampAnnot> GetAppearance(OfdReader ctx, AtomicSignId idProvider)
        {
            // 解析OFD页码获取页面对应的ID
            string     id         = string.Empty; //ctx.getPageObjectId(page).ref ();
            StampAnnot annotation = new StampAnnot()
            {
                Id       = idProvider.IncrementAndGet(),
                Boundary = $"{Tlx} {Tly} {Width} {Height}",
                PageRef  = string.Empty
            };
            List <StampAnnot> res = new List <StampAnnot>(1)
            {
                annotation
            };

            return(res);
        }
Example #2
0
        public List <StampAnnotation> GetAppearance(OfdReader ctx, AtomicSignId idProvider)
        {
            // 解析OFD页码获取页面对应的ID
            string          id         = string.Empty; //ctx.getPageObjectId(page).ref ();
            StampAnnotation annotation = new StampAnnotation(null)
            {
                Id       = idProvider.IncrementAndGet(),
                Boundary = (new StBox(Tlx, Tly, Width, Height)),
                PageRef  = string.Empty
            };
            List <StampAnnotation> res = new List <StampAnnotation>(1)
            {
                annotation
            };

            return(res);
        }