ImportInstantJSONDataFromFile Method (GdPicturePDF)
Imports PSPDFKit InstantJSON form fields and annotation data from file specified by the provided file path.
public function ImportInstantJSONDataFromFile(
: String
): GdPictureStatus;
public function ImportInstantJSONDataFromFile(
: String
) : GdPictureStatus;
'Declaration
Public Function ImportInstantJSONDataFromFile( _
ByVal As String _
) As GdPictureStatus
Parameters
- FilePath
- The file path of the data source document.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.
How to import InstantJSON data from file.
Using pdf = New GdPicturePDF
pdf.LoadFromFile("input.pdf")
pdf.ImportInstantJSONDataFromFile("annotations.json", False, True)
pdf.SaveToFile("output.pdf")
End Using
using (GdPicturePDF pdf = new GdPicturePDF)
{
pdf.LoadFromFile("input.pdf");
pdf.ImportInstantJSONDataFromFile("annotations.json", false, true);
pdf.SaveToFile("output.pdf");
}