mike-edel / id-multipageimporter Goto Github PK
View Code? Open in Web Editor NEWScript for automating the placing (import) of PDF and InDesign files inside Adobe InDesign
Script for automating the placing (import) of PDF and InDesign files inside Adobe InDesign
It would be great to add the following capabilities:
Hi, I'm experiencing a problem with importing a pdf into InDesign CC21 that's new to me. Left and right page changes scale when placed in ID when I choose anything other than "fit to page" or scale 100%. If I put 93%, left page changes to 94,etc and right page is 93%. This occurs when I change the offset. What could have happened? I've been using it for a few years now, with lots of different positions, fits and offsets and this is the first time I've ever had any issues. Any help appreciated. Thanks, /Anna
Ether the trim box is not defined, or is empty.
Love the script!
One feature I'd like to see:
When I have PDF file submitted with bleed on all 4 sides and place it center relative to spine by .125" (my bleed margin), they place perfectly but they overlap in the middle, and I need to go and "clean up" the areas they overlap to make sure cross over images look correct.
Is there a way to run the script and crop the pages automatically so I don't have to manually do this? See attached screen cap.
I saw an addition someone named DMD add to the script:
'Start placing on Doc page' automatically pulls the page you are currently on
I would appreciate it if you could add it in the next version
var myPageName = app.activeWindow.activePage.name
// Doc start page dLog.pan1.add('statictext', [10,94,190,109], "Start Placing on Doc Page:"); dLog.docStartPG = dLog.pan1.add('edittext', [10,114,70,137], myPageName); dLog.docStartPG.onChange = docStartPGValidator;
THANKS!
Add support for multiple file selection when Importing. Functionality for placing files sequentially would be needed (ie: alphabetical order - default, or alternatively order selected).
I would love to see an option to place a multi-page PDF that can be scaled and placed on a page so that the content is maximized proportionally and placed on the paged based on the margins.
This would be super helpful when printing a book and needing to allow an adequate margin on the left edge for binding.
Currently, it appears that the script is only able to scale the PDFs based on the PDF frame and not the content, resulting in much smaller prints and graphics that do not fill up the margin area.
An option to center horizontally and vertically to page margins would be awesome.
After using the import script, the selected "crop type" is set as the new preference for the complete app. Placing from menu "File" > "Place" the last selected setting from the script is used.
I tried removing all parts that seem to be connected to the prefs, but this did not change anything, the result was the same. But I am no expert in scripting. Maybe you could help me to solve this?
I, I wanna contact you directly for working on some small-medium script for Adobe InDesign,
Can you provide your email?
I am trying to transcribe a book, but when using the import script it freezes at 83% i use Adobe Indesign 2021 v16.3.
Fix this please and check the spelling.
Issue with importing certain PDFs similar to another issue posted by shmeets.
PDF files will open fine and imports correctly with Place function and the standard PlaceMultiplePDF script.
Most certainly something wrong with type of PDF files, as if I use 'save as' in acrobat the PDFs will then import fine.
My issue is that I recieve a lot of PDFs to import and roughly half will cause the program to freeze.
Example of error causing PDF can be found below:
40 S355 J2+N.pdf
Windows 10 & 11
Indesign 19.0.1 x64
Macbook Pro, M1 Max, Monterey, InDesign 16.4
When trying to import a PDF that was freshly exported from an InDesign file that contains all page boxes, the error "[PDF]" doesn't contain [Page Box] crop type appears and script doesn't run. Even selecting "Media" fails to import with the same message.
This is happening to multiple PDFs 2GB or larger with CMYK art. Is there a size limit for this script?
Thanks!
Is it possible that this will work with IDML as well as INDD? IDML would be so useful.
I have tried on 2 computers, in 2019 and 2021 versions. I have placed the script in the program files scripts location as well as in the users scripts location as recommended in a previous comment. It asks me for the pdf, I select it and then it has that blue circle twirling infinitely... any suggestions?
Hi,
I have installed version v2.6.4 in the user directory (AI 16.2.1 / MacOS Big Sur 11.6) and when I click on the script the dialog window does not open.
Do you have an idea?
Thank you and have a nice day.
Best.
Hello! Is there any way to have the script only apply to evens or odds rather than all pages? I need to place my PDF onto all even pages and can't figure out the code to make this happen nor a way to do such! Thanks!
It would be nice if we can apply object style to placed pages. This way I could use object style resize, position feature to fine tuning placed PDF pages.
Add checkbox to dialogue to start placing files on currently selected document page.
Love this, it is super helpful.
However, I was pulling in 370 pages of web pdfs and wanted to all fit within 1" margins not just the page. I now have to hand fit all these pages, which is a huge drag.
Love this script. Thank you very much! The one thing I would love to see is to have it insert new pages to place the document on starting with the page you indicate. The problem I am having is if I am placing a document in the middle of an existing document, it places the imported pages on top of existing items.
So if I have a 10-page document and I want to place a 6-page document into it beginning on page 4, the script would add pages between the original pages 4 and 5 and the document would now be a total of 16 pages.
when I add a pdf to a InDesign project that is "right binding" it puts both pages the right and the left one on top of each other
Love this script! Thank you so much for creating it! Glad I kept my ID 2017 version because it runs fine there, but for some reason it doesn't want to run in 2019. Thanks again!
Firstly thanks for this great script!
Few days ago I bought a new PC, installed latest version of InDesign and tryed to import multipage PDF into my project but had a problemm: there is a error of Script when I am trying to set scale value less than 33%. It is very strange because on previous PC i had no such a problems. I tryed different PDF`s and the same.
Can you help?
First off, thanks a lot for maintaining the script!!
Now the issue:
I have to import large Indesign documents into a new document, where the new document should have 4 A6 pages per A4 page.
So, I would like to have a script to place 4 (reduced) A4 pages per A4 page before generating a new page.
So there would have to be like a mini template where the number of pages and location/scale of the pages could be defined (per new page)... Is souch a thing even possible?
Cheers!
Daniel
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.
The multi page insert works, but it does not insert blank pages. Any new pages overlay on existing pages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.