-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path03-verbose-pages.ps1
More file actions
28 lines (22 loc) · 1004 Bytes
/
Copy path03-verbose-pages.ps1
File metadata and controls
28 lines (22 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# inspect/03-verbose-pages.ps1 — deep inspection with --verbose and --pages
$ErrorActionPreference = 'Stop'
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$RootDir = Split-Path -Parent (Split-Path -Parent $ScriptDir)
$OutputDir = Join-Path $RootDir 'samples\output'
$Pdf = Join-Path $OutputDir 'document\03-all-blocks.pdf'
$InspectOut = Join-Path $OutputDir 'inspect'
New-Item -ItemType Directory -Force -Path $InspectOut | Out-Null
if (-not (Test-Path $Pdf)) {
New-Item -ItemType Directory -Force -Path (Split-Path $Pdf) | Out-Null
& pdfnative render `
--input (Join-Path $RootDir 'samples\render\document\03-all-blocks.json') `
--output $Pdf
}
Write-Host '→ Inspecting (verbose + pages)…'
& pdfnative inspect `
--input $Pdf `
--format json `
--verbose `
--pages `
--output (Join-Path $InspectOut '03-verbose-pages.json')
Write-Host " ✓ Report: $InspectOut\03-verbose-pages.json"