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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Convert Pdf to Image on Mac
  FAQ FAQ  Forum Search   Register Register  Login Login

Convert Pdf to Image on Mac

 Post Reply Post Reply
Author
Message
JMLM View Drop Down
Team Player
Team Player
Avatar

Joined: 26 Mar 13
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote JMLM Quote  Post ReplyReply Direct Link To This Post Topic: Convert Pdf to Image on Mac
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 13 at 8:27PM
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


Back to Top
Rowan View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 10 Jan 09
Status: Offline
Points: 398
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rowan Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 13 at 2:35AM
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.
Back to Top
JMLM View Drop Down
Team Player
Team Player
Avatar

Joined: 26 Mar 13
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote JMLM Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 13 at 7:39AM
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
Back to Top
JMLM View Drop Down
Team Player
Team Player
Avatar

Joined: 26 Mar 13
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote JMLM Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 13 at 2:51PM
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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 13 at 7:11PM
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
Back to Top
JMLM View Drop Down
Team Player
Team Player
Avatar

Joined: 26 Mar 13
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote JMLM Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 13 at 9:10PM
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

Back to Top
JMLM View Drop Down
Team Player
Team Player
Avatar

Joined: 26 Mar 13
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote JMLM Quote  Post ReplyReply Direct Link To This Post Posted: 18 May 13 at 8:33AM
Hi, 
I tested with the last version 0914.
Same problem on mac Os.
Cheers Jim.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store