Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
PdfLibrary v10: Bug when adding PNG |
Post Reply |
Author | |
Walther
Beginner Joined: 20 Aug 15 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 20 Aug 15 at 8:41AM |
DebenuPDFLibraryPNG.pas has a function TPNGReader.FilterData where there's a code snip like this:
... SetLength(FAlphaData, AlphaDataByteCount * FHeight); if Length(FImageData) > 0 then begin FillChar(FAlphaData[1], Length(FAlphaData), 0); end; ... This code is buggy and should most likely be: ... SetLength(FAlphaData, AlphaDataByteCount * FHeight); if Length(FAlphaData) > 0 then // FAlphaData replaced here!!! begin FillChar(FAlphaData[1], Length(FAlphaData), 0); end; ... This caused some confusion within our development team. If this is not fixed in version 11, you could probably merge in the fix there. |
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
Hi Walther,
Yes, you are correct, that appears to be a mistake. We'll fix that in the next release. Thanks! Just be careful posting source code on forums, this is only a small snippet so not a big deal but preferably just post the version number, filename and line number with suggested change. If there's a bigger suggested change better to email Debenu directly. Cheers, - Rowan.
|
|
Paul
Moderator Group Joined: 25 Jun 14 Location: Slovakia Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi Walther,
The issue was fixed and the solution is available in the version 12.11. You can download it form here: http://www.debenu.com/products/development/debenu-pdf-library/trial/
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store