Cmdlets like Split-PDF, Merge-PDF, and Convert-PDFToText don't work with UNC paths.
WARNING: Split-PDF - Error has occured: Exception calling ".ctor" with "1" argument(s): "Microsoft.PowerShell.Core\FileSystem::\FileServer01\Data\test.pdf not found as
file or resource."
The Resolve-Path cmdlet adds the Microsoft.PowerShell.Core\FileSystem:: to the UNC path which causes iText to puke, this doesn't happen with local file paths. I switched Resolve-Path to Convert-Path and it seems to be working fine on my local copy.
Cmdlets like Split-PDF, Merge-PDF, and Convert-PDFToText don't work with UNC paths.
WARNING: Split-PDF - Error has occured: Exception calling ".ctor" with "1" argument(s): "Microsoft.PowerShell.Core\FileSystem::\FileServer01\Data\test.pdf not found as file or resource."
The Resolve-Path cmdlet adds the Microsoft.PowerShell.Core\FileSystem:: to the UNC path which causes iText to puke, this doesn't happen with local file paths. I switched Resolve-Path to Convert-Path and it seems to be working fine on my local copy.