Print Page | Close Window

Saving a PDF file

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=309
Printed Date: 19 May 24 at 2:29AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Saving a PDF file
Posted By: tren
Subject: Saving a PDF file
Date Posted: 07 Feb 06 at 4:11AM
Hey there,

I'm having trouble saving certain PDFs to disk using QuickPDF.

Using vbscript, I'm reading in the PDF and saving the file:

QP.LoadFromFile("filename")
QP.SaveToFile("filename2")

But when I open filename2, it issues an error:

"Could not find the Extended Graphics State Named 'GS1'.

The PDF then opens, but all the pages are blank and it's missing its bookmarks.

However, if I do:

QP.LoadFromFile("filename")
QP.ExtractPageRanges("1-lastpage")
QP.SaveToFile("filename2")

The complete PDF opens correctly (minus the bookmarks). This is happening for most PDFs.

Any ideas whats going on?

Thanks,
Ben






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