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 - How to Save PDF from TStream
  FAQ FAQ  Forum Search   Register Register  Login Login

How to Save PDF from TStream

 Post Reply Post Reply
Author
Message
archimedes View Drop Down
Beginner
Beginner


Joined: 21 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote archimedes Quote  Post ReplyReply Direct Link To This Post Topic: How to Save PDF from TStream
    Posted: 21 Aug 09 at 2:09PM

Hi all,

I'm trying to find how can i save a PDF file from TStream in Delphi 2007. I'm using trail version. Is it posible to be done this. I need a simple code.
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 21 Aug 09 at 4:04PM
Can you explain what you mean with "save a PDF" ? To disk or something else ?
"from a TStream"? how do you got this pdf in a TSTream ?
There is a function to save a PDF on disk : SaveToFile, it save a loaded pdf , perhaphs you can use LoadPdfFromStream ?
Back to Top
archimedes View Drop Down
Beginner
Beginner


Joined: 21 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote archimedes Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 09 at 7:07AM

I want to create pdf file from a stream. But it is formated as RTF format. When i use this stream the file is empty. Same happen when i use LoadFromString. Am I missing something??? My goal is to create PDF file from Stream or String.

Back to Top
archimedes View Drop Down
Beginner
Beginner


Joined: 21 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote archimedes Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 09 at 7:40AM
i found that LoadFromString(instr) retunr always 0 which mean The PDF could not be loaded. How can i find where is the problem
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 09 at 9:57AM
Hi!

You won't have success if the TStream-data is formatted as RTF (like you wrote above).
It should be formatted as PDF then you can create a pdf-file from it.
If you're doing it the other way round (making a stream from a pdf-file) then you'll see how stream-structure for pdf should look to do your way (stream to pdf-file).

Cheers, Ingo
 


Edited by Ingo - 24 Aug 09 at 9:58AM
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. AboutContactBlogSupportOnline Store