Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Nov 19, 2021 1:13 pm

Hello
We get the following exception when using the Spire.PDF SaveAsImage method in a Citrix Terminal Server environment.

Der Zugriff auf den Pfad "C:\Windows\Fonts\GVHOL__.TTF" wurde verweigert.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
bei System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
bei spr?.?(Hashtable A_0, String A_1)
bei spr?.?()
bei spr?.?()
bei spr?.?(Single A_0)
bei spr?.?(Single A_0)
bei spr?.?(Graphics A_0, spr? A_1, Boolean A_2, Boolean A_3)
bei spr?.?(Graphics A_0, spr? A_1, Boolean A_2, Boolean A_3)
bei spr?.?(String A_0, spr? A_1, String A_2, Boolean A_3)
bei spr?.?(String[] A_0, String A_1)
bei spr?.?(spr? A_0)
bei spr?.?()
bei spr?.?(Boolean A_0)
bei spr?.?(Graphics A_0, spr? A_1, spr? A_2, spr? A_3, Image A_4)
bei spr?.?(Int32 A_0, Int32 A_1, Int32 A_2)
bei Spire.Pdf.PdfDocumentBase.?(Int32 A_0)

Can you please help us?

Regards
Eduard

[email protected]
 
Posts: 8
Joined: Thu Dec 17, 2015 2:15 pm

Mon Nov 22, 2021 6:23 am

Hello,

Thank you for your inquiry.
According to the error message you provided "Der Zugriff auf den Pfad "C:\Windows\Fonts\GVHOL__.TTF" wurde verweigert", I guess that your issue is caused by not having the permission to read the font information. This is because the fonts in the PDF file need to be read from the system if they are not embedded in the document. Please make sure you have permission to read the font files. Also, please confirm if this issue is encountered only in the Citrix Terminal Server environment. What about other systems (such as windows server 2016, windows7)?
In addition, our latest version of Spire.PDF is Spire.PDF Pack (Hot Fix) Version: 7.11.1. If you were not using the latest version, please first give it a try. If the problem still exists after trying, please provide the following information for us to investigate further. You could attach them here or send them to us via email ([email protected]). Thanks in advance.
1) Your sample PDF file.
2) Your complete test code.
3) Your application type, such as Console app (. Net Framework 4.5).

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF

cron