mike-edel / ID-MultiPageImporter

Script for automating the placing (import) of PDF and InDesign files inside Adobe InDesign
119 stars 24 forks source link

Error while importing PDF #15

Closed lkjts closed 3 years ago

lkjts commented 3 years ago

Trying to import a PDF always results with this error:

"***.pdf" doesn't contain a "All Layers Bounding Box" crop type: Please try again by selecting a different crop type or open
the PDF in Acrobat and perform a "Save As..." command.

Than this:

JavaScript Error 89867 The default engine 'main' cannot be deleted. Line: 589

I think it has something to do with Crop margins not being defined in the PDF. Since I'm stuck with this particular PDF I'm hoping for a solution.

mike-edel commented 3 years ago

Sounds like you will have to fix the PDF first. Acrobat DC (pro) will allow you to set manual crop regions. That should do it. What happens when you place the pdf manually?

On Mar 25, 2021, 09:19, at 09:19, lkjts @.***> wrote:

Trying to import a PDF always results with this error:

"***.pdf" doesn't contain a "All Layers Bounding Box" crop type: Please
try again by selecting a different crop type or open
the PDF in Acrobat and perform a "Save As..." command.

Than this:

JavaScript Error 89867 The default engine 'main' cannot be deleted. Line: 589

I think it has something to do with Crop margins not being defined in the PDF. Since I'm stuck with this particular PDF I'm hoping for a solution.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/mike-edel/ID-MultiPageImporter/issues/15

lkjts commented 3 years ago

It turns out the problem was indeed in the PDF. The PDF was created from Microsoft Word on a Mac, the same Mac I used to import it into InDesign. After some trial and error the only thing that worked was creating the same PDF from the original Word file but on a PC. Then I used the new PDF on the same Mac to import into InDesign and it worked just fine.

Side note, I did use Acrobat on the first PDF to set the bounding boxes but it did not help.