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!
![]() |
ContentStreamCount seems screwy |
Post Reply
|
| Author | |
cscooper
Beginner
Joined: 06 Apr 12 Location: Boulder, CO Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: ContentStreamCount seems screwyPosted: 07 Apr 12 at 1:51PM |
|
I've got a PDF document with 2 pages, for each page ContentStreamCount returns '2' but in each case Stream #1 is valid but Stream #2 is zero-length. Is this expected behavior? Has QuickPDF created a second content stream in case I want to write to it (or something)?
Thanks, Chris |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 Apr 12 at 5:11PM |
|
Hi Chris!
Perhaps it starts with 0 and not with 1 and you're counting starting with 1? Only an idea ... ;-) Your relevant code regarding this issue would be good to know. Cheers, Ingo |
|
![]() |
|
cscooper
Beginner
Joined: 06 Apr 12 Location: Boulder, CO Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 07 Apr 12 at 8:44PM |
|
Good idea but I don't think that's it ... GetContentStreamCount() returns 2; SelectContentStream(0) and SelectContentStream(3) both fail; after SelectContentStream(1), GetContentStreamToString() returns a byte array that is 94090 bytes long;
after SelectContentStream(2), GetContentStreamToString() returns a byte array that is 0 bytes long.
|
|
![]() |
|
edvoigt
Senior Member
Joined: 26 Mar 11 Location: Berlin, Germany Status: Offline Points: 111 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Apr 12 at 10:23AM |
|
Hi,
in QuickPDF I think all list are made as starting by 1. So SelectContentStream(0) has ever to fail. Where the empty contentstream comes, knows only the producer of the PDF (or not). But why not using CombineContentStreams before? So you have all pagecontent at once. What do you want to do with the stream? To manipulate it, you have to be very very familar with the PDF-specifications. Most it's better to let QuickPDF do this job. Cheers, Werner |
|
![]() |
|
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