Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]

Scott H Tech PDF Image Converter - page number to render problem
Started by utain99_macair Nov 01 2018 08:24 AM

1 reply to this topic
[TOPIC: post.html]


[GLOBAL: userInfoPane.html]
  • Observer

  • 2 posts
  • Corona SDK

Hi Scott


I've activated the PDF Image Converter plug-in, downloaded and tested by Android mobile


and also i read plugin document in below topic


pdfImageConverter.toImage(pdfFile, pageNum, imagePath)
--convert pdf to image
pdfFile(string)(required), path to import pdf file via pathForFile
pageNum(number) page number to render (deafult is 0)


imagePath(string)(required), path to export image file via pathForFile
, so in sample project i change sample.pdf to pdf file with have many pages,
and then i set to show image that will convert from sample.pdf in page 4 by code below
pdfImageConverter.toImage(system.pathForFile( "sample.pdf"), 4,system.pathForFile("pdfImage.jpeg", system.DocumentsDirectory))  
but unfortunately image with convert from sample.pdf not render from page 4 (it render from page 1)
or i missing somethings, Any help appreciated.

Attached Files

[TOPIC: post.html]

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,822 posts
  • Enterprise

This has been patched