Import multipage pdf into separate CorelDraw pages

I am trying to import a pdf file that have multiple pages. I want each pdf page to be placed on different page of CorelDraw. When I import using:

ActiveDocument.ActivePage.ActiveLayer.Import pdfFileName

then all pdf pages are placed on the current CorelDraw page. How to fix that?

  • Well, I found a solution to this. I used free a utility pdftk to split pdf pages and imported pages one by one. When pdftk splits pdf, it also creates  a text metadata file that includes number of pages in the original pdf.