Skip to main content
Known Participant
August 23, 2017
Question

Can I make Pages with print only layers to not be visible when exporting an interactive pdf?

  • August 23, 2017
  • 11 replies
  • 4600 views

I have an interactive pdf that I am creating a print version for. I have created pages with the layer that will be printed, but when I export I now have a number of blank pages. Is there a way to make those pages not visible when exported?

This topic has been closed for replies.

11 replies

Jbarrigon
Inspiring
August 30, 2017

When you export to interactive document you can leave the option for layers active to create Acrobat Layers, when you export for print, check the menu for layers in the export options window, you have to choose the option for export just visible and printable layers

BMurr2Author
Known Participant
August 29, 2017

Unfortunately, I can not post the document online. It is a Classified Document. I made all of the pages that are not to be printed templates and unchecked the boxes and added the javascript action to the "Print" buttons. after printing all of the pages that I don't want visible in the digital pdf are added to the doc again. I assume that is what the delete command is for. unfortunately I did add it and it did not work. I adjusted the page numbers as page 9 through page 35 are what I want to no show, but still, have it print. I adjusted the command to

this.deletePages({nStart: 9,nEnd: 35});

 

Did I use it correctly?

Community Expert
August 29, 2017

I just tested my suggestion, and here's what I found: form fields can be hidden and not printable. But, when made visible, they also become printable.

I have created a workaround that can be done with in Acrobat. Here is a link to the file I worked, download first and view in Acrobat or Reader.

BMurr2Author
Known Participant
August 29, 2017


or the command "this.deletePages({nStart: 2,nEnd 3}); are you trying to delete these pages? what does this accomplish?

Community Expert
August 29, 2017

I don't think this javascript is necessary to accomplish what you want. I think it can be done with form field properties, that will allow you to make fields visible, but not printable.

Can you post the PDF or facsimile ?

BMurr2Author
Known Participant
August 29, 2017

Also, it is only printing the first page of the print version not all of the pages.

BMurr2Author
Known Participant
August 29, 2017

This did not work as both images showed when printing and the number of pages I need to be printed is greater than those that need to display digitally.

vinny38
Legend
August 29, 2017

Hi

First of all, IMHO this question should take place in the Acrobat forum.

Now, if you want to print pages that don't show in Acrobat, I suggest you change those pages into templates.

Then turn their visibility off.

Finally assign custom javascript to the print button.

Javascript code will get the templates (getTemplate function) and spawn them (spawn function), then print the doc (no JS in my example below, but could be) and finally delete the spawn pages. Make sure these instructions are in correct order.

Not knowing how is your document set and where the "hidden" pages should be spawned, I made a small example with spawned pages added at the end of the document. But you can add numbering properties to the spawn function. Obviously, Indesign Page Auto-numbering will not be your friend here, unless all the spawned pages are meant to be at the very end of the PDF

In addition: Please note that if you want to hide an element on a page in Acrobat but be able to print it, you can (in Indesign), transform it into a button, check "Printable" and "Hide Until Triggered".

See example below:

Hope I understood your question correctly ^^

Vinny

BMurr2Author
Known Participant
August 29, 2017

Vinny38

Do you have the example in English, not French? I would very much like to test this out.

vinny38
Legend
August 29, 2017

Sorry bmurr,

I have a French version only, but with the explanation, I'm sure you can figure it out and test it.

Although I'm still not sure I understood exactly what you want to achieve..., 

Mike_Gondek10189183
Community Expert
Community Expert
August 28, 2017

BMurr2,

Would be appreciated if you could reply, as you have a number of great replies here, and not sure if you still need help. If we are not understanding your needs please explain. Is not clear if you just want to make a PDF which has certain page sin them, or if you possible want all the pages in the .pdf but for certain ones to not print.

BMurr2Author
Known Participant
August 28, 2017

My apologies. I have not had access all weekend.

amaarora

I am trying your suggestion, but When I go to the print menu I do not get the option to "print to pdf" in the "Printer" drop down.

Jeffery_Smith

I need one pdf. The pdf has interactive elements. It has buttons that take you from page to page, and buttons that on a single page allow for elements to appear and disappear, when activated. (this is the part that has things that would overlap when printed) The third interactive element is a print button, that when activated would print the pdf excluding the page that has the overlapping elements, but including the pages of this layout with the elements laid out to be legible. these pages, however, would not be visible when using the interactive elements on the screen.

Lisa Maxwell Art Director

Thank you for your suggestion but that is not what I am trying to accomplish.

MikeGondek

I am sorry I did not respond sooner. I do not believe that your suggestion will work for what I am trying to accomplish.

Willi Adelberger
Community Expert
Community Expert
August 29, 2017

I would create a PDF without that not visible layer and create that layer as extra PDF. In Acrobat Pro you can add a background, use that extra PDF and set this background visible on print, invisible on screen.

Participating Frequently
August 27, 2017

You could export all the pages, open the document in Acrobat, go to TOOLS>ORGANIZE PAGES and delete the pages you don't want to include. Then just save that version of the document.

Community Expert
August 25, 2017

I am not sure exactly what you want to accomplish.

- If you need two kinds of PDFs (interactive and print), export the page ranges separately to produce two different files.

- If you need all pages exported, but want only certain pages viewed, while others are hidden, then this could be accomplished with a workaround in Acrobat. You just can't hide pages from view, but you can have attachments. The attachments could be the hidden pages that are activated with a button.

- If you need all pages exported, but want a visitor to be able to print only a certain range, then this can be done in Acrobat with a button and javascript. The following js    this.print(true, 0, 1, 2, 5, 7,);   would print pages 1, 2, 3, 6, 8 of document.

Mike_Gondek10189183
Community Expert
Community Expert
August 23, 2017

This method is less automated as amaaarora's brilliant example, but Incase you are on Mac or do not have the PDF printer.

Specify the exact pages you want using the range button.

BMurr2Author
Known Participant
August 23, 2017

But will this allow me to print the pages I want to be printed but not shown, and show the pages I want to be visible when using the interactive pdf, but keep them from printing?

Mike_Gondek10189183
Community Expert
Community Expert
August 23, 2017

Yes you are telling InDesign exactly which page numbers you want in your PDF, and then when printing you would enter in a similar dialog box the exact page numbers of what you desire to print.

Notice the comma and dash usage for ranges. If you used sectioning to renumber page numbers in your document, you will need to add "+" before the page numbers.