PeachPDF
PeachPDF.Network
DataUriNetworkLoader Class
The default RNetworkLoader used when NetworkLoader
is left unset. Resolves only data: URIs; any other resource URI (remote stylesheets, remote
images, HTTP(S) sources) is silently skipped. This is the safest default for server-side environments
where network access must be opted into explicitly rather than assumed.
public class DataUriNetworkLoader : PeachPDF.Network.RNetworkLoader
Inheritance System.Object → RNetworkLoader → DataUriNetworkLoader
| Properties | |
|---|---|
| BaseUri | The document’s base URL, used to resolve relative href, src, and CSS url() references. If null, relative references are resolved against the local file system. |
| Methods | |
|---|---|
| GetPrimaryContents() | Not supported by this loader — the HTML string must always be passed directly to PdfGenerator.GeneratePdf/AddPdfPages rather than loaded via a network loader. |
| GetResourceStream(RUri) | Returns the content of an external resource (a stylesheet or image) referenced by the document, or null if the resource cannot be resolved. |