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!
Loadfromstream problem |
Post Reply |
Author | |
cpri
Team Player Joined: 17 Feb 06 Location: Netherlands Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 08 Mar 07 at 12:58AM |
Hello there,
I have the following problem. I have a pdf file loaded into a Tmemorystream. When I save this stream to a file. I can open this file with every pdf viewer (including my own quickpdf based viewer). But I don't want to save the stream first to a file and then open the file. The direct way would be by using the function LoadFromStream. When I use this function I get an error on the ReadTrailer function and the pdfstream isn't loaded. I saw that the LoadfromFile function uses the Loadfromstream function as well but then the file is loaded into a Tfilestream. How can get the Loadfromstream function to work without saving my stream first to file and then oping this file to a TfileStream Thanks |
|
ukobsa
Senior Member Joined: 29 May 06 Location: Germany Status: Offline Points: 115 |
Post Options
Thanks(0)
|
Hi,
Does this happens for every PDF? And can you post a code snippet so that we have a test case? Just for sure: did you reset your memory streams position to zero before using loadfromstream? Ulrich |
|
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