PDFLibエンジンを使用してpdfファイルを生成しています。テンプレート機能を使用しましたが、コードは次のとおりです。
/* define the template */
template = p.begin_template_ext(width, height, "");
...template using text, vector, and image functions...
p.begin_page(page_width, page_height);
/* use the template */
p.fit_image(template, 0.0, 0.0, "");
...more page marking operations...
p.end_page();
...
p.close_image(template);
しかし、次のようなエラーが表示されます。
関数をオブジェクト スコープで呼び出してはなりません。
どこで間違いを犯したのかわかりません。
ありがとう。