question

NoufAldossary-7269 avatar image
0 Votes"
NoufAldossary-7269 asked EvanWu-8694 commented

Insert multiple files into OneNote

Hi there, How do I put multiple files (PDFs or images) into OneNote in one time?

office-onenote-client-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

emilyhua-msft avatar image
1 Vote"
emilyhua-msft answered EvanWu-8694 commented

@NoufAldossary-7269

To batch Import PDFs or images to OneNote, you need the code help.

I find a similar thread "How to insert multiple file printouts at one time?", there is a .bat file could insert multiple PDF files into OneNote as printouts at one time.

  • Go to OneNote desktop client > Options > Send to OneNote > Under "Other Content" section, set one page for "Print to OneNote".
    120034-image.png

  • Search Printers & Scanners and set "Send To OneNote 2016" as the default printer.
    120044-image.png

  • Set one PDF reader program as the default program for pdf files.

  • Put all the pdfs in a folder, on my test environment, I call it as "Test".

  • Create a .txt file, copy the command below and paste into it, then rename it printPdfs.js as script file in the "Test" folder. Please pay attention to file name extensions.
    new ActiveXObject("Shell.Application").ShellExecute(WScript.Arguments.Item(0),"","","print","1");

  • The same action as above to create a batch file and rename it printPdfs.bat in the same folder.
    @for /f "delims=" %%a IN ('dir /b *.pdf') do call cscript //nologo printPdfs.js "%%a"

  • Double-click the batch file (printPdfs.bat).
    120022-image.png

Hope the information could help you.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (32.9 KiB)
image.png (18.4 KiB)
image.png (32.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That helps a lot! Thank you so much.

But now the title of each page is "Printout". May I know how to make the name of OneNote pages same as the file name of PDF files respectively?

0 Votes 0 ·