作成日: 2026/02/13 最終更新日: 2026/02/13
文書種別
使用方法
詳細
PDFビューワで配置した注釈は、注釈エディタの下部にある「変換」を適用することで、固定項目(テキストや画像)としてPDFに保存できます。
この「変換」はAnnotationBaseクラスのconvertToContentプロパティで設定できます。
たとえば、スタンプ注釈を配置した時点で「変換」を適用する場合、以下のように設定します。
viewer.onBeforeAddAnnotation.register((args) => {
if(args.annotation.annotationType==13){
args.annotation.convertToContent = true;
}
});
以下のリファレンスをあわせてご確認ください。
AnnotationBase - convertToContent