Beispiel #1
0
        public static HPDF_Annotation HPDF_LinkAnnot_New(HPDF_Xref xref, HPDF_Rect rect, HPDF_Destination dest)
        {
            LibLogger.Debug(MethodBase.GetCurrentMethod().DeclaringType, "HPDF_LinkAnnot_New");

            HPDF_Annotation annot = new HPDF_Annotation(xref, (uint)HPDF_AnnotType.HPDF_ANNOT_LINK, rect);

            annot.HPDF_Dict_Add("Dest", dest);

            return(annot);
        }
Beispiel #2
0
        public HPDF_Annotation HPDF_URILinkAnnot_New(HPDF_Xref xref, HPDF_Rect rect, string uri)
        {
            LibLogger.Debug(this.GetType(), "HPDF_URILinkAnnot_New");

            HPDF_Annotation annot;
            HPDF_Dict       action;

            annot = new HPDF_Annotation(xref, (uint)HPDF_AnnotType.HPDF_ANNOT_LINK, rect);

            /* create action dictionary */
            action = new HPDF_Dict();

            annot.HPDF_Dict_Add("A", action);

            action.HPDF_Dict_AddName("Type", "Action");
            action.HPDF_Dict_AddName("S", "URI");
            action.HPDF_Dict_Add("URI", new HPDF_String(uri, null));

            return(annot);
        }
Beispiel #3
0
 // TODO: body
 public void HPDF_TextAnnot_New(HPDF_Xref xref, HPDF_Rect rect, string text, HPDF_Encoder enecoder)
 {
     LibLogger.Debug(this.GetType(), "HPDF_TextAnnot_New");
 }
Beispiel #4
0
 // TODO: body
 public HPDF_Annotation(HPDF_Xref xref, uint type, HPDF_Rect rect)
 {
     LibLogger.Debug(this.GetType(), "HPDF_Annotation");
 }