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!
![]() |
Abstract error |
Post Reply
|
| Author | |
cpri
Team Player
Joined: 17 Feb 06 Location: Netherlands Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Topic: Abstract errorPosted: 21 Feb 06 at 2:22AM |
|
I want to use quickpdf to view some pdf files. So the first thing I used was RenderPageToFile and then save this image as a jpg. Then using a simple image loader I load the picture into my program This works fine. The bad thing about this approach is that I have to save a image to disk. To overcome this problem I used the function RenderPageToStream. (See code) [code] procedure TForm1.Button1Click(Sender: TObject); begin QP.UnlockKey(''); JPEG.LoadFromStream(test_stream); end; [code] Now I get an "abstract error" when I tried to run the RenderPageToStream function.
Edited by cpri |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Feb 06 at 5:04AM |
|
Hi CPRI!
Please edit your sample... !!! The Reg-Key !!! |
|
![]() |
|
JanN
Senior Member
Joined: 29 Oct 05 Location: Germany Status: Offline Points: 116 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Feb 06 at 5:13AM |
|
I repeat: Please remove your Reg-Key from your post!
Now to your problem: You should use TMemoryStream or TFileStream instead of TStream. These two do not raise that error. |
|
![]() |
|
cpri
Team Player
Joined: 17 Feb 06 Location: Netherlands Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Feb 06 at 6:32AM |
|
Ok sorry for the key. The idea was to skip this line in my code when pasting it to the forum but somehow I forgot (It won't happen again I promise). I tried the TmemoryStream. but now I got a JPEG error #42. (this error is raised when I try to load the jpeg into image container) |
|
![]() |
|
cpri
Team Player
Joined: 17 Feb 06 Location: Netherlands Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Feb 06 at 7:28AM |
|
Error fixed. It was due to the fact that the stream wasn't at the right position. for those who are intresseted in the code here it is (without the reg key ;-)) procedure TForm1.Button1Click(Sender: TObject); begin QP.UnlockKey('....'); finally end;
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Feb 06 at 9:08AM |
|
Hi Cpri!
Thanks for this... You can put it in the sample section ;-) Best regards, Ingo |
|
![]() |
|
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