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!
![]() |
Convert Pdf to Image on Mac |
Post Reply ![]() |
Author | |
JMLM ![]() Team Player ![]() ![]() Joined: 26 Mar 13 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() Posted: 12 May 13 at 12:03PM |
Hi,
I can not convert a pdf to image I don't know if it is a bug. I tried with RenderPageToFile , and RenderDocumentToFile . My images are empty. Best regards Jim
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
So you've done something wrong... ;-)
You should post the relevant code part from ...create up to ...free and then it should be possible to help you with this issue. Cheers, Ingo |
|
![]() |
|
Rowan ![]() Moderator Group ![]() ![]() Joined: 10 Jan 09 Status: Offline Points: 398 |
![]() ![]() ![]() ![]() ![]() |
Hi Jim,
Sorry to hear you're experiencing issues. If you could upload the PDF that you're trying to convert to an image we'll run some tests on our end. Also which image type are you trying to save it as? Cheers, - Rowan.
|
|
![]() |
|
JMLM ![]() Team Player ![]() ![]() Joined: 26 Mar 13 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
hi,
Thanks Ingo and Rowan. in fact , for testing i used : if([DQPL RenderDocumentToFile:300: 0: pageCount: 1: @"/Users/JMLM/Desktop/test/image-%p.jpg"]) NSLog(@"OK");( prompt Ok but images are empty) or int pageCount = [DQPL PageCount]; for( int nPage = 0; nPage < pageCount; ++nPage ) {
[DQPL RenderPageToFile:72 : nPage :1 :@"/Users/JMLM/Desktop/test/image.jpg"]; [DQPL RenderPageToString:300 : nPage :1] } (I also tried with png option : 5) For my project I want to store the result as a blob text, the result (NSData*) of RenderPageToString is also empty. I want to convert any pdf to images (from : Word, Open Office, Acrobat ...) I tried with differents sources of Pdf. I tested on Lion and Mountain Lion. Cheers Jim. Edited by JMLM - 17 May 13 at 10:12AM |
|
![]() |
|
JMLM ![]() Team Player ![]() ![]() Joined: 26 Mar 13 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
HI I have tested these lines code on windows os (C#) and it works fine but on mac , images are empty. Cheers Jim
Edited by JMLM - 17 May 13 at 2:52PM |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Jim!
Did you check the returning values from the functions? And if there's something strange you can use LastErrorCode... Did you read this: http://www.debenu.com/kb/debenu-quick-pdf-library-and-mac-xcode-projects/ Cheers, Ingo Edited by Ingo - 17 May 13 at 7:14PM |
|
![]() |
|
JMLM ![]() Team Player ![]() ![]() Joined: 26 Mar 13 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
I did that, my project works fine, except this function. I can use all your sample easily. [DQPL RenderDocumentToFile:72: 0: iNumPages: 5: @"/Users/JMLM/Documents/jpg/png.png"]; return 1 in Loop : NSString *name = [NSString stringWithFormat:@"/Users/JMLM/Documents/jpg/img-%d.png", i]; [DQPL RenderPageToFile:300 :i :5 :name]; return 1 [DQPL RenderPageToString:300 : nPage :1] return Empty NSdata Cheers Jim |
|
![]() |
|
JMLM ![]() Team Player ![]() ![]() Joined: 26 Mar 13 Status: Offline Points: 40 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I tested with the last version 0914. Same problem on mac Os. Cheers Jim. |
|
![]() |
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