libharu:HPDFAnnotation#set_opened

#!/usr/bin/env ruby

require "hpdf"

pdf  = HPDFDoc.new
page = pdf.add_page

a = page.create_text_annot(0, 0, 100, 100, "foo", pdf.get_current_encoder)
a.set_opened(1)

a = page.create_text_annot(0, 100, 100, 200, "foo", pdf.get_current_encoder)
a.set_opened(0)

pdf.save_to_file(File.basename($0, ".rb") + ".pdf")
  • 引数はブール値にして欲しい〜
  • HPDF_Annotation_SetBorderStyle() に相当するものはどこに?