PeachPDF

PeachPDF.Network.FileUriNetworkLoader

FileUriNetworkLoader Constructors

Overloads  
FileUriNetworkLoader() Creates a loader whose base URI is the current working directory, for rendering an in-memory HTML string whose relative references should resolve against the process’s working directory. GetPrimaryContents() is not supported on an instance created this way — pass the HTML directly to PdfGenerator.GeneratePdf/AddPdfPages instead.
FileUriNetworkLoader(string) Creates a loader whose root document is the file at primaryFilePath and whose base URI is that file’s own file: URI, so relative references resolve against the file’s directory — exactly like opening a local .html file in a browser. Pass null as the HTML argument to PdfGenerator.GeneratePdf/AddPdfPages to render this file.

FileUriNetworkLoader() Constructor

Creates a loader whose base URI is the current working directory, for rendering an in-memory HTML string whose relative references should resolve against the process’s working directory. GetPrimaryContents() is not supported on an instance created this way — pass the HTML directly to PdfGenerator.GeneratePdf/AddPdfPages instead.

public FileUriNetworkLoader();

FileUriNetworkLoader(string) Constructor

Creates a loader whose root document is the file at primaryFilePath and whose base URI is that file’s own file: URI, so relative references resolve against the file’s directory — exactly like opening a local .html file in a browser. Pass null as the HTML argument to PdfGenerator.GeneratePdf/AddPdfPages to render this file.

public FileUriNetworkLoader(string primaryFilePath);

Parameters

primaryFilePath System.String

Path to the root HTML file. Resolved against the current working directory if relative.