Native PDF: Last page content overlap | Adobe Higher Education
Skip to main content
Level 4
May 7, 2024
Beantwortet

Native PDF: Last page content overlap

  • May 7, 2024
  • 2 Antworten
  • 3762 Ansichten

Hello again!

 

I am developing a Native PDF Map template. I have copyright content that I'd like to include on the last page of a PDF. I've been able to call the information that I need, but I'm having trouble with the DITA content running under the copyright info. I know I can potentially push this out to its own page entirely, but I would prefer not to include an entire extra page each time.

 

Here is what I'm working with:

 

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" href="layout.css" type="text/css"/> <meta name="page-style" content="size:A4 portrait;"/> <title>Page Layout</title> <meta name="footnote-style" content=""/> </head> <body> <div data-region="header"> <br/> </div> <div data-region="content" style=""></div> <div class="content" style="position: absolute; margin-top: 6pt; margin-bottom: 12pt; break-inside: avoid; bottom: 0"> <img align="left" height="73" src="BackMatter-ERIE_Logo.jpg" style="vertical-align: bottom; position: relative; display: block;" width="175"/> <span style="padding-top:5e;"> <span style="position:relative;"> <span style="font-size:10pt;padding-top:5em">©</span> </span> </span> <span data-field="metadata" data-format="default" data-subtype="//copyright/copyryear/@year" style="font-size: 10pt">COPYRYEAR</span> <span data-field="metadata" data-format="default" data-subtype="//copyright[1]/copyrholder" style="font-size: 10pt">COPYHOLDER</span> </div> <div data-region="footer"></div> </body> </html>

 

Here is an example of the output that I'm getting on the last page from this code (page content continues underneath the copyright verbiage):

 

 

How can I make it so that the DITA topic content does not run into the copyright info? I have tried quite a few things without success. Any help is greatly appreciated!

 

Thank you!

Josh Monacella

 

 

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von VivekKumar

Thanks again! I should have sent you a shot of the order before:

 

I removed the back page entry, but the output is the same.

 

Thanks for your help!


You will have to redesign your back page a bit. position: absolute is the culprit.

 

<div class="content" style="position: absolute; margin-top: 6pt; margin-bottom: 12pt; break-inside: avoid; bottom: 0">

 

2 Antworten

Adobe Employee
May 8, 2024

How are you specifying the last page in the template? Can you share the screenshot of the Page Layouts tab of your template?

Level 4
May 8, 2024

Thanks for the quick response! Here is the page layouts tab for the template I'm using:

 

 

 

Let me know if this is what you need, or if you need anything else.

Thanks!

Josh

 

Level 4
May 14, 2024

Hi Josh,

 

You can add the footer content i.e. page, title and date in last_page page layout after the copyright content and you should be able to achieve the use case.

Let us know if that works for you.

 

Thanks and Regards,
Surbhi Maheshwari

 


Thanks again for all your help!

For anyone reading this down the line, it was the size of the footer that was preventing the final output showing correctly (after the previous steps). Once I increased the footer size, everything came together really nicely. 

I'm really thankful for this avenue of communication!

kautuk_sahni
Community Manager
Community Manager
June 7, 2024

@joshm19816095 We hope you found the AEM community helpful. We look forward to your return as either a learner or a mentor. The community benefits greatly from SMEs like you. Please encourage your AEM peers to contribute as well. Happy AEM learning!

Kautuk Sahni