Print Page | Close Window

Direct Access and New PDF

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=2915
Printed Date: 28 Jun 25 at 1:44PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Direct Access and New PDF
Posted By: bwboyte
Subject: Direct Access and New PDF
Date Posted: 05 Jun 14 at 5:07PM
We use the Direct Access Functions to Display and extract text and would like to use the PDF library to create PDF's.

When we use the Non Direct Access Functions to create PDF's, it appears to be much slower than our current PDF output library. The Current PDF Library we are using has other issues, but it is fast.

We can get 16 pages per second with our existing and 5 with PDF Library.

A lot of time appears to be occurring in TPDFSTructure.RemoveObject with lots of calls to TPDFObject.haschild (part of the RemoveObject process).

With a relatively small pdf (827 pages), the RemoveObject is called 17366 times with Haschild being called 2,617,307,064 times.

Is it possible to use the Direct Access functions to create a New PDF?

I see DANewPage but do not see any way to draw on the page.

There is no selectfont, drawtext, etc.

We will also be working with Very large PDF's at times. Some PDF's may be over 100,000 pages and holding all the data in Memory will be a problem.








Replies:
Posted By: Ingo
Date Posted: 05 Jun 14 at 8:32PM
Hi,

the DA-functions are only a subset of the whole functionality.
Only the functions with much memory usage are copied as DA-functions.
It's not possible to mix both types of functions.
If you wanna use both you have to do a free and a new create before using DA...

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




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