Print Page | Close Window

SetPageContentFromString doesn't work

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=4040
Printed Date: 24 Nov 24 at 9:09PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: SetPageContentFromString doesn't work
Posted By: ClarryG
Subject: SetPageContentFromString doesn't work
Date 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 https://developers.foxit.com/developer-hub/document/how-to-quickly-draw-many-paths-in-your-pdf-files/" rel="nofollow - 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?



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk