While we appreciate comments from our users, please follow our posting guidelines. Have you tried the Cyotek Forums for support from Cyotek and the community?

Styling with Markdown is supported

Original Comment

Gravatar

Misiu

# Reply

First of all this is awesome control and awesome API to convert pdf's into images. I'm right now creating application (university project) to open multiple files (document viewer) and I was searching for a way to display PDF's. Thanks to Your solution this is possible! I integrated Your code into my application in minutes. Everything works nice, I have just 2 tiny comments: 1. When loading pages inside Your demo app I noticed that whole application is freezing for a second. Do You think it would be possible to do that in separate thread? Show some kind of loading indicator and hide after everything get loaded? This way UI won't freeze. I'm building my project using .NET 4 so Tasks may be handy :) 2. Second thing is mouse zooming, right now is is zooming to top left corner, could that be changed to zoom to mouse position? If I need to read informations that are in bottom-right corner and I zoom in I must use scrollbars to scroll to that place. I suppose that I could point mouse there and using wheel zoom to that region. Maybe this is configurable, but I didn't found it yet.

Ones more thanks for this great code and best wishes.

Gravatar

Richard Moss

# Reply

Hello,

Thanks for your comments, I'm glad you're finding the code useful.

In regards to your first comment - I assume you're talking about another article on this site which describes how to use the ImageBox + GhostScript in order to display PDF's? It should be perfectly possibly to get a Task to do this work, just modify the code that calls the PDF conversion. Not the most helpful answer but off the top of my head I can't remember how I put together the PDF view code!

For comment two, this is an old bug in the ImageBox - did you try the latest version of the code (you can get this from the GitHub page - https://github.com/cyotek/Cyotek.Windows.Forms.ImageBox)

Regards; Richard Moss

Gravatar

Misiu

# Reply

Thanks Richard :) I was using old version of ImageBox that was with CodeProject article. After adding Your control using NuGet and some small changes everything is working fine :)

Btw any news about GhostScriptAPI? at line 659 You have TODO item about wrong combination of params. In my case I get this error when I try to open very large pdf (2900 x 6500 pixels).

Again many thanks for this awesome control and API.

Gravatar

Richard Moss

# Reply

I thought that was the case, glad you're up and running with the latest code now.

In regards to the GhostScript library, the project I was going to use it for has been sitting on the backburner for some time now so I haven't been back to it. It's unlikely that I'll get to it any time soon as I have so many other half complete projects I'd like to get done! Hopefully I'll get the chance to look at it sooner than later though.

Regards; Richard Moss

Gravatar

Misiu

# Reply

Hi again, I did some tests and it looks like error was because I had very long file name with spaces and dashes. After changing name to shorter everything works fine :)

Gravatar

Richard Moss

# Reply

Great, thanks for letting me know! That's something the library could automatically work around with a bit of cleverness... if I ever pick the project up again I'll look into it!

Regards; Richard Moss