logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Thursday, September 14, 2017 3:26:33 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
Hello,

if we try load a document with input fields in the viewer,
our app crashes with an unhandled ArgumentOutOfRangeException
thrown inside the LoadDocument-Method.

Exception:

Argument out of range (param name "index")


Stack Trace:

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Patagames.Pdf.Net.PdfForms.FFI_GetPageCallback(FPDF_FORMFILLINFO pThis, IntPtr document, Int32 nPageIndex)



(Patagames.Pdf.Net.Controls.Wpf.PdfViewer)
(Patagames.Pdf.Wpf 3.8.1, Patagames.Pdf 3.8.1.2704)
(.NET-Framework 4.6.1).

Is this a known or already fixed behaviour or are their any chances for a quick fix?

10014416729_1_Kontoloschung-Vorlage+Coba.pdf (1,122kb) downloaded 21 time(s).

Best regards

Michael

Edited by user Thursday, September 14, 2017 3:27:34 AM(UTC)  | Reason: Attatchment in wrong position

Paul Rayman  
#2 Posted : Thursday, September 14, 2017 5:54:39 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Hi,

Fixed!

https://forum.patagames....-on-Sep-14--2017#post952



And answer to your next question is

Quote:
Try to set FormsBlendMode to FXDIB_BLEND_NORMAL


:)

Edited by user Thursday, September 14, 2017 5:56:20 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
MWuerthner71 on 9/14/2017(UTC)
MWuerthner71  
#3 Posted : Thursday, September 14, 2017 8:28:15 AM(UTC)
MWuerthner71

Rank: Newbie

Groups: Registered
Joined: 7/5/2017(UTC)
Posts: 6
Germany
Location: Karlsruhe

Thanks: 3 times
Thanks for the quick and helpful response.
MWuerthner71  
#4 Posted : Monday, September 18, 2017 9:16:06 AM(UTC)
MWuerthner71

Rank: Newbie

Groups: Registered
Joined: 7/5/2017(UTC)
Posts: 6
Germany
Location: Karlsruhe

Thanks: 3 times
Hello, with the new version and the recommended setting we unfortunately have again the problem I formerly posted here:
http://forum.patagames.c...in-PDFium-viewer#post871

Please let me know what we can do to avoid both bugs.

Thanks in advance,

Michael
Paul Rayman  
#5 Posted : Monday, September 18, 2017 4:40:10 PM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
You can set back the FormsBlendMode property to FXDIB_BLEND_MULTIPLY

The document that you submitted earlier (10014416729_1_Kontoloschung-Vorlage+Coba.pdf) contains abnormal text annotations that will not be displayed correctly in this case.
At the moment we are working on finding a solution of that problem.
Thanks!
thanks 1 user thanked Paul Rayman for this useful post.
MWuerthner71 on 9/19/2017(UTC)
MWuerthner71  
#6 Posted : Tuesday, September 19, 2017 12:16:56 AM(UTC)
MWuerthner71

Rank: Newbie

Groups: Registered
Joined: 7/5/2017(UTC)
Posts: 6
Germany
Location: Karlsruhe

Thanks: 3 times
Hi, with FXDIB_BLEND_MULTIPLY it does not crash anymore, and the highlighted text is displayed correctly.
This obviously is much better than before, thanks!
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.