GdPicture.NET.14
GdPicture14 Namespace / GdPicturePDF Class / ImportInstantJSONDataFromFile Method
The file path of the data source document.
Example





ImportInstantJSONDataFromFile Method (GdPicturePDF)
Imports PSPDFKit InstantJSON form fields and annotation data from file specified by the provided file path.
Syntax
'Declaration
 
Public Function ImportInstantJSONDataFromFile( _
   ByVal FilePath 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.

Remarks
This method is only allowed for use with non-encrypted documents.
Example
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
See Also