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!
SetPageContentFromString doesn't work |
Post Reply |
Author | |
ClarryG
Beginner Joined: 19 Jul 24 Location: Sweden Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 19 Jul 24 at 1:18PM |
I've experimented with filtering some content in streams. I've tried with both Get/SetPageContentFromString and Get/SetContentStreamFromString. I get the content OK, but even if I don't change it, just set it back, the page gets mangled. It looks like the page shrunk and is rendered in something like a 50th size. Just a mess of black "lines" in the lower left corner, about 1 by 2 centimeters. An experimental method to draw on a newly created page: int nCS = QP.NewContentStream(); QP.SelectContentStream(nCS); QP.SetContentStreamFromString(sRawPDF); Render(); with sRawPDF being 268.8066 424.4088 m 271.8255 420.2306 l S which is a snippet i found here. It's supposed to draw a line, and it does. But just something like half a centimeter long in the lower right corner. I've experimented with SetScale, SetMeasurementUnits and such, but with any changes to the output. I'm using a quite old version (16.11), but I hope (don't think) that shouldn't matter. Anyone, any ideas?
|
|
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