Frisket.Import
0.13.0
dotnet add package Frisket.Import --version 0.13.0
NuGet\Install-Package Frisket.Import -Version 0.13.0
<PackageReference Include="Frisket.Import" Version="0.13.0" />
<PackageVersion Include="Frisket.Import" Version="0.13.0" />
<PackageReference Include="Frisket.Import" />
paket add Frisket.Import --version 0.13.0
#r "nuget: Frisket.Import, 0.13.0"
#:package Frisket.Import@0.13.0
#addin nuget:?package=Frisket.Import&version=0.13.0
#tool nuget:?package=Frisket.Import&version=0.13.0
Frisket.Import
Reads one page out of an existing PDF so that Frisket can place it in a document it is writing - a back page of terms drawn by somebody else, a certificate, a fixed appendix. It lays out like a picture: in a band, in a table cell, at a coordinate, several to a sheet.
In a template the page is an ImportedPageItem:
{ "$type": "ImportedPageItem", "SourcePath": "terms.pdf", "Page": 2,
"AltText": "The terms, page 2",
"Style": { "Location": { "WidthValue": 150, "WidthUnit": "Millimeter" } } }
and the pages are read with this package's reader, on the template, before it meets the data - so a page named inside a repeated block is read once, not once per record:
using Frisket;
using Frisket.Import;
Report template = Report.FromFile("templates/letter.json");
ImportedPages.Resolve(template, new PdfPageImporter(), baseDirectory: "templates");
Report report = ReportBinder.Bind(template, dataJson);
A path may not leave baseDirectory (or the root you pass): the template chooses the
file, and a template is untrusted the moment somebody else wrote it.
The pages on the back page are read too. A page that nothing has read draws nothing, and
LayoutResult.Issues says so with fits.importedPageUnread - which is what a host without
this reader gets, such as the native library.
A copy, not a rendering. Nothing here interprets a content operator or knows what a font is: the page's marks and the objects they reach travel as they are, renumbered into the new file, so pages full of JPEG, JBIG2 or CCITT images import without a line of code for any of them. Encrypted files are refused rather than half-read.
An import puts a conformance claim in question. Frisket cannot vouch for bytes it did
not write - the page may draw a font that is not embedded. It says so in
LayoutResult.Issues and refuses nothing: whether the document was meant to be PDF/A is
yours to know.
Frisket depends on nothing here; this package depends on Frisket. MIT licence - github.com/fderenty/Frisket.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Frisket (>= 0.13.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.13.0 | 43 | 11/8/2026 |
| 0.12.0 | 56 | 11/6/2026 |
| 0.11.0 | 69 | 11/4/2026 |
| 0.10.0 | 73 | 11/4/2026 |
| 0.9.0 | 74 | 11/4/2026 |
| 0.8.0 | 75 | 11/4/2026 |
| 0.7.0 | 86 | 11/3/2026 |
| 0.6.1 | 81 | 11/3/2026 |
| 0.6.0 | 95 | 11/2/2026 |
| 0.5.0 | 87 | 11/2/2026 |
| 0.4.1 | 90 | 11/2/2026 |
| 0.4.0 | 101 | 11/1/2026 |
| 0.3.0 | 93 | 11/1/2026 |
| 0.2.0 | 105 | 10/21/2026 |
| 0.1.0 | 93 | 10/18/2026 |