Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetAnnotSubject
Sets or changes the optional subject string of an annotation.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 5.0 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.SetAnnotSubject"; PDF; AnnotationHandle; Subject ) More
Parameters
Parameter | Description | Example |
---|---|---|
The PDF reference returned from DynaPDF.New. | ||
AnnotationHandle | The annotation index. | 5 |
Subject | The subject to be set. | "Hello World" |
Result
Returns OK or error.
Description
Sets or changes the optional subject string of an annotation.The subject is defined since PDF 1.5. The function adjusts the PDF version automatically if it is lower than PDF 1.5.
The annotation types FileLink, PageLink, PopUp and WebLink do not support a subject string. The function returns with an error when trying to set the subject on these annotation types.
If the parameter Value an empty string the subject string is deleted in the annotation.
See also SetAnnotSubject function in DynaPDF manual.
See also
This function checks for a license.
Created 25th November 2014, last changed 25th November 2014
