Example #1
0
func (annotation *LinkAnnotation) SetBorderStyle(
	width float32, dashOn, dashOff uint16,
) error {
	C.HPDF_LinkAnnot_SetBorderStyle(
		annotation.annotation,
		C.HPDF_REAL(width), C.HPDF_UINT16(dashOn), C.HPDF_UINT16(dashOff),
	)
	return annotation.pdf.GetLastError()
}
Example #2
0
func (annotation *Annotation) SetBorderStyle(
	subtype BSSubtype, width float32, dashOn, dashOff, dashPhase uint16,
) error {
	C.HPDF_Annotation_SetBorderStyle(
		annotation.annotation,
		C.HPDF_BSSubtype(subtype),
		C.HPDF_REAL(width),
		C.HPDF_UINT16(dashOn), C.HPDF_UINT16(dashOff), C.HPDF_UINT16(dashPhase),
	)
	return annotation.pdf.GetLastError()
}
Example #3
0
func (page *Page) SetRotate(rotate uint16) error {
	C.HPDF_Page_SetRotate(page.page, C.HPDF_UINT16(rotate))
	return page.pdf.GetLastError()
}
Example #4
0
func (encoder *Encoder) GetUnicode(code uint16) rune {
	return rune(C.HPDF_Encoder_GetUnicode(encoder.encoder, C.HPDF_UINT16(code)))
}