Frequently Asked Question:
I have to open a file, make changes and save it as new or same file?
I opened the file, used DrawText() to make changes, and then used DAAppendFile() to save the changes, but nothing happened. the FileHandle parameter is correct. Am I doing something wrong?
The standard way of adding test to a file is
QP.OpenFile("myfile.pdf"); QP.DrawText(10,10, "Hello World"); QP.SaveToFile("newfile.pdf");
The functions starting with 'DA' are Direct Access functions and can only be used with other 'DA' functions. They cannot be mixed with other no DA functions when processing a PDF file.
The Quick PDF Library Developer Guide has a good overview of how to use the Quick PDF Library and makes learning the library much easier. The Developer Guide has been released with the 7.25 and later versions of the library and can be found in your installation directory.
Quick PDF Library 7 Developer Guide.pdf