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 - ContentStreamCount seems screwy
  FAQ FAQ  Forum Search   Register Register  Login Login

ContentStreamCount seems screwy

 Post Reply Post Reply
Author
Message
cscooper View Drop Down
Beginner
Beginner
Avatar

Joined: 06 Apr 12
Location: Boulder, CO
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote cscooper Quote  Post ReplyReply Direct Link To This Post Topic: ContentStreamCount seems screwy
    Posted: 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

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: 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

Back to Top
cscooper View Drop Down
Beginner
Beginner
Avatar

Joined: 06 Apr 12
Location: Boulder, CO
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote cscooper Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
edvoigt View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 Mar 11
Location: Berlin, Germany
Status: Offline
Points: 111
Post Options Post Options   Thanks (0) Thanks(0)   Quote edvoigt Quote  Post ReplyReply Direct Link To This Post 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
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