Salir
  • Comunidad global
    • Idioma:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티

save pdf with selected layers

Principiante de comunidad ,
Jan 13, 2020 Jan 13, 2020

I have a pdf that has layers. I want to only have one of the layers visible then save so that the print shop can print in large format. When I save with only selected layer visible, the file still has all the layers showing. How do I fix this?

TEMAS
Editar y convertir archivos PDF , Imprimir y preimprimir
33.6K
Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
2 SOLUCIONES ACEPTADAS
Community Expert ,
May 29, 2020 May 29, 2020

All layers have a default visibility value. It is these default values that determine the visibility on opening. On the layers panel, right click on a layer and select properties to set this value. 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Ver la solución en mensaje original publicado

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Community Expert ,
May 21, 2025 May 21, 2025

Set the "initState" property.  However, this only work in Acrobat Pro.   

 

var docOCGs = this.getOCGs();
for (var i=0; i < docOCGs.length; i++)
{
    if (docOCGs[i].name == "Badge Tab")
    {
        docOCGs[i].state = !docOCGs[i].state;
        docOCGs[i].initState = docOCGs[i].state;
    }
}

 

For a strategy that work for Reader you'll need to store the state on the form. For example, in a hidden text field.  Then a document level script can be used to setup the OCG states when the PDF is opened. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Ver la solución en mensaje original publicado

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Nuevo aquí ,
May 21, 2025 May 21, 2025

Hey I'm using buttons to show/hide multiple layers in Acrobat with javascript. How do I save a new PDF with my selection of layers showing? Every time I save a PDF the layers are back to hidden by default. Here's the javascript I use for my button action

 

var docOCGs = this.getOCGs();
for (var i=0; i < docOCGs.length; i++)
{
if (docOCGs[i].name == "Badge Tab")
{
docOCGs[i].state = !docOCGs[i].state;
}
}

 

Appreciate the help.

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Community Expert ,
May 21, 2025 May 21, 2025

Set the "initState" property.  However, this only work in Acrobat Pro.   

 

var docOCGs = this.getOCGs();
for (var i=0; i < docOCGs.length; i++)
{
    if (docOCGs[i].name == "Badge Tab")
    {
        docOCGs[i].state = !docOCGs[i].state;
        docOCGs[i].initState = docOCGs[i].state;
    }
}

 

For a strategy that work for Reader you'll need to store the state on the form. For example, in a hidden text field.  Then a document level script can be used to setup the OCG states when the PDF is opened. 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Nuevo aquí ,
May 22, 2025 May 22, 2025

Thank you so much Thom! Works perfectly.

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Principiante de comunidad ,
Sep 12, 2022 Sep 12, 2022

Hi, I get annoyed by this also. If you open the pdf in acrobat and deselect the layers you don't want to see, then save as a jpeg it should work and save only the layers you want to see. Then I print that in photoshop.

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Principiante de comunidad ,
May 24, 2023 May 24, 2023

I feel like all these answers are wrong or partial. This wokred for me - 1. deselect the layers you want to hide. 2. Right cleck each layer and select properties. 3. for each option turn off all visibilty options and then save as a new file so you dont alter the original. Default State: OFF Initial State: Visibility  - Never Visible, Print: Never Prints, Export: Never Export 

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Nuevo aquí ,
Jun 27, 2023 Jun 27, 2023

I made a layer I wanted visible with Acrobat and flattened the layer.  Saved it and open with Photoshop.  Only the layer saved showed up.

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Nuevo aquí ,
Aug 24, 2025 Aug 24, 2025

Go to Patternprojector.com -- it's for projecting sewing patterns like you are doing, and you can click off/on the size layers you want to project. It's also free. It's really very amazing.

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines
Nuevo aquí ,
Aug 24, 2025 Aug 24, 2025
MÁS RECIENTES

Sorry, wrong address -- it's projectorsewing.com 

Traducir
Informe
Directrices de la comunidad
Sé amable y respetuoso, muestra títulos de crédito de la fuente de contenido original y busca duplicados antes de publicar. Más información
community guidelines