Class: HPDFEncoder
- Inherits:
-
Object
- Object
- HPDFEncoder
- Defined in:
- ext/hpdf.c
Instance Method Summary collapse
Instance Method Details
#get_byte_type ⇒ Object
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 |
# File 'ext/hpdf.c', line 917
static VALUE
hpdf_encoder_get_byte_type (VALUE obj, VALUE text, VALUE index)
{
HPDF_Encoder encoder;
const char *s;
HPDF_INT i;
HPDF_STATUS ret;
s = STR2CSTR(text);
i = NUM2INT(index);
Data_Get_Struct(obj, HPDF_Encoder_Rec, encoder);
HPDF_PTRACE(("hpdf_encoder_get_byte_type encoder=%p\n", encoder));
ret = HPDF_Encoder_GetByteType(encoder, s, i);
return INT2NUM(ret);
}
|
#get_type ⇒ Object
902 903 904 905 906 907 908 909 910 911 912 913 914 915 |
# File 'ext/hpdf.c', line 902
static VALUE
hpdf_encoder_get_type (VALUE obj)
{
HPDF_Encoder encoder;
HPDF_STATUS ret;
Data_Get_Struct(obj, HPDF_Encoder_Rec, encoder);
HPDF_PTRACE(("hpdf_encoder_get_type encoder=%p\n", encoder));
ret = HPDF_Encoder_GetType(encoder);
return INT2NUM(ret);
}
|
#get_unicode ⇒ Object
937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 |
# File 'ext/hpdf.c', line 937
static VALUE
hpdf_encoder_get_unicode (VALUE obj, VALUE code)
{
HPDF_Encoder encoder;
HPDF_INT i;
HPDF_STATUS ret;
i = NUM2INT(code);
Data_Get_Struct(obj, HPDF_Encoder_Rec, encoder);
HPDF_PTRACE(("hpdf_encoder_get_unicode encoder=%p\n", encoder));
ret = HPDF_Encoder_GetUnicode(encoder, i);
return INT2NUM(ret);
}
|
#get_writing_mode ⇒ Object
955 956 957 958 959 960 961 962 963 964 965 966 967 968 |
# File 'ext/hpdf.c', line 955
static VALUE
hpdf_encoder_get_writing_mode (VALUE obj)
{
HPDF_Encoder encoder;
HPDF_STATUS ret;
Data_Get_Struct(obj, HPDF_Encoder_Rec, encoder);
HPDF_PTRACE(("hpdf_encoder_get_writing_mode encoder=%p\n", encoder));
ret = HPDF_Encoder_GetWritingMode(encoder);
return INT2NUM(ret);
}
|