Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Multipage PDFs causing filename issue |
Post Reply ![]() |
Author | |
chilluk ![]() Beginner ![]() Joined: 20 Jul 06 Location: United Kingdom Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 30 Aug 06 at 6:10AM |
I'm trying to thumbnail a directory of PDFs - using VBA and iSed - utilising the RenerDocumentToFile command. It seems on multipage PDFs that the resultant file name always has a 1 appended (I'm specifying first page only) and I don't want that as the filenames need to match exactly the originals. Please help!! |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi chilluk!
How should this work? Each page of the document will be converted to an image - so the names can't be the same. If so - the result will be only the last page as an image - the other pages will be lost. If this is not okay for you you can work with copy, delete, kill, rename, ... after the function call. Best regards, Ingo Edited by Ingo |
|
![]() |
|
chilluk ![]() Beginner ![]() Joined: 20 Jul 06 Location: United Kingdom Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I am specifying in the code that I only want to convert a single page - so ideally I'd want it to just have the name I specify without the added on 1. Can I detect multiple pages first and then I would know which ones need renaming? Thanks for your reply. |
|
![]() |
|
chilluk ![]() Beginner ![]() Joined: 20 Jul 06 Location: United Kingdom Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Ah - no worries - maybe it names all with the suffix of 1 - I'll just rename them all!!
|
|
![]() |
|
hbarclay ![]() Team Player ![]() Joined: 29 Oct 05 Location: United States Status: Offline Points: 39 |
![]() ![]() ![]() ![]() ![]() |
The suffix should be whatever the page number is, and if you don't want it to be the suffix, you can insert a '%p' into the file name and the page number will replace the %p.
If you were using Delphi you could just call RenderPageToStream and then save the stream to a file, using VBA you might try RenderPageToString and then save the resulting string to a file. That way you would have complete control over the file name. I haven't tried either of these, but the functions look like they should work. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store