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!
DLL function: SaveToString |
Post Reply |
Author | |
marian_pascalau
Debenu Quick PDF Library Expert Joined: 28 Mar 06 Location: Germany Status: Offline Points: 278 |
Post Options
Thanks(0)
Posted: 20 Sep 07 at 3:23PM |
Hi there, do not use that function. Because of string manipulations you may get truncated in the wrong place. You should use instead the last ActiveX version toghether with SaveToStream function.
Best regards, Marian
|
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
Probably useful information: I'm using Delphi 7.
|
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
Hi Ingo!
Unfortunately the break is not that clear. The returned string ends in between a pdf stream object: .... >> startxref 0 %%EOF 9 0 obj << /Type /Catalog /Pages 10 0 R >> endobj 10 0 obj << /Type /Pages /Kids [ 11 0 R 1 0 R ] /Count 2 >> endobj 20 0 obj << /Length 21 0 R /S 46 /Filter /FlateDecode >> stream xœc```c``ZÁÀÁÀ .Ì À€ Could it be that this somehow is a limitation of Delphi when using DLLs!? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Jan!
Without looking into the function this moment ... Perhaps the read-in-loop is the problem? Normally such loop begins with "...until eof...". If i look inside pdf-files with notepad i often see the eof-sign anywhere inside (not at the end!) of the pdf-content. Perhaps SaveToStr stops at this eof? Best regards, Ingo |
|
JanN
Senior Member Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
|
Hi!
Has anybody used the function SaveToString from DLL? What I experience is that I only get the first 768 byte of the document. Can anyone tell me how to make it work? Thanks in advance. Regards, Jan |
|
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