Print Page | Close Window

MergeFileList bug or feature?

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=1151
Printed Date: 08 Mar 26 at 1:10AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: MergeFileList bug or feature?
Posted By: jmooney
Subject: MergeFileList bug or feature?
Date Posted: 15 Jul 09 at 8:14PM
Hi, New to QuickPDF but when implementing the MergeFileList feature it appears if the fileList only contains one file nothing gets produced... when adding multiple files it, of course, works great.

I'm just wondering if this is expected behaviour?

Thanks,
Jeff M.



Replies:
Posted By: Ingo
Date Posted: 15 Jul 09 at 10:37PM
Hi Jeff!

"...only contains one file..."???
So there's nothing to merge?!

Cheers, Ingo


Posted By: jmooney
Date Posted: 15 Jul 09 at 10:52PM
Correct, but the control should account for that and just create a pdf with one document...

However, I understand the implication of what you are saying, too!  Why would you try and merge only one document, well, to nothing?

The answer is boring but suffice it to say I'm iterating through available documents [1... many] and if there is only one I want to be able to use the same code/routine to produce a named pdf file, which is not too far fetched, instead of forking code to do this... does that make sense?

Jeff


Posted By: Ingo
Date Posted: 16 Jul 09 at 6:12AM
Hi Jeff!

It's similar to the question: "What was first... The chicken or the egg?"
Okay ram costs less today but if you can avoid running useless code then you should - so if you see that it's senseless to run the merge routine then you should avoid it ;-)

Cheers, Ingo


Posted By: jmooney
Date Posted: 16 Jul 09 at 1:19PM
I think you miss the point... thanks anyway.


Posted By: deabrew
Date Posted: 16 Jul 09 at 1:31PM
Hi Jeff,

You could try creating a blank page -- and always merging this at the start of your merge list. Then, after the merge is complete, you can delete this page.

Cheers, -Karl


Posted By: Michel_K17
Date Posted: 17 Jul 09 at 2:51AM
I'm with Jeff on this one. I check to see if there is only one file to merge, and as Ingo said, I bypass the call to the Merge function. Nonetheless (ie ideally), if the merge command is called with just one file in the merge list, I would expect a copy of the original file to appear at the destination. Not a biggie, but not quite as expected.

Cheers!



-------------
Michel


Posted By: deabrew
Date Posted: 17 Jul 09 at 9:43AM
I'll have a chat with the team about this one -- in the meantime, you will be able to go ahead using the method I described above.

I'll recap -- everytime you merge:

1. Add a dummy page to the start of the list
2. Add the files you wish to merge
3. Delete the first page

This will give you the output you are looking for.

Cheers, -Karl



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