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





In This Topic
ImportInstantJSONDataFromFile Method (GdPicturePDF)
In This Topic
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
public GdPictureStatus ImportInstantJSONDataFromFile( 
   string FilePath
)
public function ImportInstantJSONDataFromFile( 
    FilePath: String
): GdPictureStatus; 
public function ImportInstantJSONDataFromFile( 
   FilePath : String
) : GdPictureStatus;
public: GdPictureStatus ImportInstantJSONDataFromFile( 
   string* FilePath
) 
public:
GdPictureStatus ImportInstantJSONDataFromFile( 
   String^ FilePath
) 

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
using (GdPicturePDF pdf = new GdPicturePDF)
{
    pdf.LoadFromFile("input.pdf");
    pdf.ImportInstantJSONDataFromFile("annotations.json", false, true);
    pdf.SaveToFile("output.pdf");
}
See Also