DaleStan wrote:
Out of curiosity, how would one go about importing a file whose name (or path) contains a hash?
If the filename ends with digits preceded by a hash sign, then PDFsharp interprets the digits as the desired page number (1-based).
If the filename ends with ".pdf", you can have any number of hashes within your filename.
"#123.pdf" will work.
If you omit ".pdf" and name your file "#123" then you can always add "#1" to make it work.
A filename "#123" would have to be passed as "#123#1".
A filename like "ac#dc" will work without the trick.