Search found 16 matches

by accudave
Thu Jul 27, 2017 5:26 am
Forum: Feature Requests
Topic: Add loadIntoMemory parameter to CreateGdPictureImageFromStream
Replies: 1
Views: 4315

Add loadIntoMemory parameter to CreateGdPictureImageFromStream

Please add an overload to CreateGdPictureImageFromStream to allow the api to utilize an existing Stream without making a copy of it, such as when using a pre-existing MemoryStream, or FileStream. Currently GdPicture will always make a copy of the stream, and is a problem when working with large file...
by accudave
Thu Jul 13, 2017 3:39 am
Forum: General discussions
Topic: How to speed up thumbnail generation?
Replies: 0
Views: 2832

How to speed up thumbnail generation?

Hey there, I am generating thumbnails by using GdPictureImaging.GetThumbnailHQ, but it is pretty slow. This is quite noticeable on larger documents (e.g 30 pages takes over 3-4 seconds). The non-HQ method is not much faster. Is there a way to use parallel processing? I have attempted this, but it ap...
by accudave
Thu Jan 26, 2017 5:55 pm
Forum: PDF
Topic: Possible bug when using JPEG2000 and MRC compression
Replies: 1
Views: 1438

Possible bug when using JPEG2000 and MRC compression

I won't be able to share example documents because the ones we are provided that can replicate the bug have sensitive customer data them, but we found that on some TIF documents (LZW compressed), converting them to PDF with JPEG2000 and MRC compression results in a GenericError returned by GdPicture...
by accudave
Tue Oct 04, 2016 6:09 pm
Forum: General discussions
Topic: Aborted status returned by ReleaseGdPictureImage
Replies: 8
Views: 1938

Re: Aborted status returned by ReleaseGdPictureImage

This did resolve the issue and our api is working great now. I understand that I was releasing the image id of the multi-page tiff too early by having that call outside the else statement, but could you explain more about what TiffSafeAsMultiPageFile does internally that requires us to do tiffId = p...
by accudave
Tue Oct 04, 2016 4:17 pm
Forum: General discussions
Topic: Aborted status returned by ReleaseGdPictureImage
Replies: 8
Views: 1938

Re: Aborted status returned by ReleaseGdPictureImage

You will need to add the GdPicture references, but there is also an example PDF, though it seems to happen on any file.
by accudave
Tue Oct 04, 2016 4:07 pm
Forum: General discussions
Topic: Aborted status returned by ReleaseGdPictureImage
Replies: 8
Views: 1938

Re: Aborted status returned by ReleaseGdPictureImage

It is 30MB, how would you like me to send this to you?
by accudave
Tue Oct 04, 2016 3:26 pm
Forum: General discussions
Topic: Aborted status returned by ReleaseGdPictureImage
Replies: 8
Views: 1938

Re: Aborted status returned by ReleaseGdPictureImage

The second code snippet in my post above is the full method signature used to convert the file, and it seems to fail when releasing the multipage tiff id. The code is almost identical to the example https://guides.gdpicture.com/content/Converting%20multipage%20PDF%20document%20to%20multipage%20TIFF%...
by accudave
Mon Oct 03, 2016 10:02 pm
Forum: General discussions
Topic: Aborted status returned by ReleaseGdPictureImage
Replies: 8
Views: 1938

Aborted status returned by ReleaseGdPictureImage

Is this a status code we should be treating as an error, or can it be ignored? We have code to convert a PDF to a TIF that works great, but we noticed that this method is returning an Aborted status code when releasing the multi-page TIFF id. The concern here is a possible memory leak, and we are us...
by accudave
Tue Jul 21, 2015 9:21 pm
Forum: WPF
Topic: One of either Get/SetRectCoordinatesOnDocumentInch has a bug
Replies: 5
Views: 1669

Re: One of either Get/SetRectCoordinatesOnDocumentInch has a

I will try to put something together this evening for you to find out. I'll attach the project solution or you if I can reproduce it as a standalone application.
by accudave
Tue Jul 21, 2015 7:11 pm
Forum: WPF
Topic: One of either Get/SetRectCoordinatesOnDocumentInch has a bug
Replies: 5
Views: 1669

Re: One of either Get/SetRectCoordinatesOnDocumentInch has a

I am. I updated to be sure. I also found that this is only occurring with PDF files.
by accudave
Fri Jul 17, 2015 7:41 am
Forum: WPF
Topic: One of either Get/SetRectCoordinatesOnDocumentInch has a bug
Replies: 5
Views: 1669

Re: One of either Get/SetRectCoordinatesOnDocumentInch has a

I figured out the problem with your code. The problem is GetRectCoordinatesOnDocumentInch does not mathematically consider the Zoom amount of the DocumentViewer. Basically if you take the values returned by GetRectCoordinatesOnDocumentInch and divide that by GdViewer.Zoom you will get the correct co...
by accudave
Fri Jul 17, 2015 4:19 am
Forum: WPF
Topic: One of either Get/SetRectCoordinatesOnDocumentInch has a bug
Replies: 5
Views: 1669

One of either Get/SetRectCoordinatesOnDocumentInch has a bug

In our application, we allow the user to define a rectangle on a PDF document using the WPF GdViewer control. When we use SetRectCoordinatesOnDocumentInch, and immediately call GetRectCoordinatesOnDocumentInch, the coordinates returned to not match what was passed to set. Here is some sample data. d...
by accudave
Wed Jun 10, 2015 11:46 pm
Forum: Document Viewing
Topic: Where is ForceTemporaryModeForImage in the WPF viewer?
Replies: 1
Views: 1628

Where is ForceTemporaryModeForImage in the WPF viewer?

How do we force the WPF viewer to view temp images so it does not lock the source file? This is preventing me from burning annotations and modifying the original images.

Suggestions?
by accudave
Mon Jun 08, 2015 4:19 pm
Forum: WPF
Topic: WPF GdViewer throws a NullReferenceException
Replies: 4
Views: 1902

Re: WPF GdViewer throws a NullReferenceException

It turned out that when using the MVVM pattern, you must ensure you are calling the view document api after the view has been fully initialized. In this case, the solution was the extract an interface from the view-model and call the view document api after the GdViewer has been fully loaded.
by accudave
Tue May 19, 2015 3:34 pm
Forum: WPF
Topic: WPF GdViewer throws a NullReferenceException
Replies: 4
Views: 1902

Re: WPF GdViewer throws a NullReferenceException

I am on version 11.1.0.14.