Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

117
Vistas
how to set different orientations in single document using docxjs

How to set sections in a document in portrait and landscape orientation, seems like it takes the first section option and uses it for the whole document. Does docxjs provide such functionality?

    const doc = new File({
      sections: [
        {
          properties: {
            page: {
              size: {
                orientation: PageOrientation.PORTRAIT,
              },
            },
          },
          children: [new Paragraph('Hello PORTRAIT')],
        },

        {
          properties: {
            type: SectionType.NEXT_PAGE,
            page: {
              size: {
                orientation: PageOrientation.LANDSCAPE,
              },
            },
          },
          children: [new Paragraph('Hello LANDSCAPE')],
        },

      ],
    });

    Packer.toBlob(doc).then((blob) => {
      saveAs(blob, title + '.docx');
    });
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda