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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DLL function: SaveToString
  FAQ FAQ  Forum Search   Register Register  Login Login

DLL function: SaveToString

 Post Reply Post Reply
Author
Message
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Topic: DLL function: SaveToString
    Posted: 20 Sep 07 at 9:05AM
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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 20 Sep 07 at 9:22AM
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

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 20 Sep 07 at 9:26AM
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!?

Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 20 Sep 07 at 9:27AM
Probably useful information: I'm using Delphi 7.
Back to Top
marian_pascalau View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert


Joined: 28 Mar 06
Location: Germany
Status: Offline
Points: 278
Post Options Post Options   Thanks (0) Thanks(0)   Quote marian_pascalau Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store