2 * << Haru Free PDF Library >> -- hpdf_annotation.c
4 * URL: http://libharu.org
6 * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7 * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
9 * Permission to use, copy, modify, distribute and sell this software
10 * and its documentation for any purpose is hereby granted without fee,
11 * provided that the above copyright notice appear in all copies and
12 * that both that copyright notice and this permission notice appear
13 * in supporting documentation.
14 * It is provided "as is" without express or implied warranty.
18 #include "hpdf_conf.h"
19 #include "hpdf_utils.h"
20 #include "hpdf_info.h"
21 #include "hpdf_exdata.h"
24 /*----------------------------------------------------------------------------*/
25 /*------ HPDF_ExData -----------------------------------------------------*/
30 HPDF_3DAnnotExData_New(HPDF_MMgr mmgr,
34 HPDF_STATUS ret = HPDF_OK;
37 HPDF_PTRACE((" HPDF_ExData_New\n"));
39 exdata = HPDF_Dict_New (mmgr);
43 if (HPDF_Xref_Add (xref, exdata) != HPDF_OK)
46 ret += HPDF_Dict_AddName (exdata, "Type", "ExData");
47 ret += HPDF_Dict_AddName (exdata, "Subtype", "3DM");
57 HPDF_EXPORT(HPDF_STATUS)
58 HPDF_3DAnnotExData_Set3DMeasurement(HPDF_ExData exdata,
59 HPDF_3DMeasure measure)
61 HPDF_STATUS ret = HPDF_OK;
63 ret = HPDF_Dict_Add (exdata, "M3DREF", measure);