Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1369

Error #outputMetadata From Target Document() when trying to Export as PDF

$
0
0

#outputMetadataFromTargetDocument()

I sincerely don´t remember this error last time I exported pages.

Here is the PDF Template CSS

@media print {
  /* General page margins setup */
  @page {
    margin: 35mm 20mm 20mm; /* top, right/left, bottom margins for all pages */
  }

  /* Specific setup for the first page */
  @page :first {
    margin-top: 35mm 20mm 20mm; /* Larger top margin for the first page only */
  }

  /* Ensure the footer does not get cut off */
  body {
    font-family: Arial, sans-serif; /* Consistent font for readability */
    margin: 0; /* Reset body margin to work within page margins */
  }
  
  
    /* Adjust header padding */
  .pdf-header {
    padding-bottom: 0mm; /* Reduced padding below the header */
    /* Other styles... */
  }

  /* Paged.js Specific Styles */
  .pagedjs_pagebox {
    --pagedjs-pagebox-width: 210mm; /* Standard A4 page width */
    --pagedjs-pagebox-height: 297mm; /* Standard A4 page height */
    box-sizing: border-box; /* Include padding and borders within dimensions */
  }

  /* Content Styling */
  .main-content {
    background-color: transparent !important;
    padding-top: 10mm; /* Reduced top padding for main content */
    padding-bottom: 10mm; /* Consistent padding for the bottom */
    padding-left: 20mm; /* Consistent padding on the left */
    padding-right: 20mm; /* Consistent padding on the right */
    page-break-inside: avoid; /* Avoid breaking inside content */
  }


  /* Handling Images */
  img {
    max-width: 100%; /* Ensure images don't overflow pages */
    height: auto; /* Maintain aspect ratio */
  }
  
  /* Footer Styling */
  .pdf-footer {
    width: 100%;
    text-align: center;
    font-size: 10px;
    padding: 5mm; /* Adjust as needed */
  }

}

I could post the header but I don´t think it’s the header since it happens even if I don´t export it.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1369

Trending Articles