AEM Native PDF Screen inside table overflows | Community
Skip to main content
July 15, 2024
Solved

AEM Native PDF Screen inside table overflows

  • July 15, 2024
  • 2 replies
  • 3255 views

Hello!

 

I'm seeing some issues in our legacy dita material where <screen> tags in tables are pushing past the right margin when I publish with Native PDF. How can I ensure that these screens stay in their cells?

 

Thanks in advance!

Josh

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by VivekKumar

Hi, @surbhi_maheshwari ! Any ideas on this one? I've really been spinning my wheels with these unwieldy <lines>!

 

Thank you!!

Josh


Hi Josh, I looked at your merged HTML file. Non breaking white space seems to be the problem. It is not visible so you can't see it. Can you open your source dita file in some editor which shows this characters and lets you replace by normal space character? I will check in my team in someone has a suggestion.

 

Thanks,

Vivek

2 replies

Adobe Employee
July 16, 2024

Hi Josh, 

 

Please share a sample dita file where you are facing this issue.

 

Thanks and Regards,
Surbhi Maheshwari

 

July 17, 2024

Hi, Surbhi!

Thanks for the quick response!

Apparently I misrepresented the problem - apologies! The offending tag is actually the <lines> tag, which is a rather unique one. 

It seems like our authors are going to have to rebuild most of these, but I still would like to prevent the tag from being able to exceed the border, if possible! Unfortunately, I had to redact the text on this one, but here is what I'm working with:

and here is the output:

 

Hopefully this is enough information! The plain AEM PDF output wraps the text normally - is Native PDF able to do the same in this case?

 

As always, thank you!

Josh

 

 

Adobe Employee
July 18, 2024

Hi Josh,

 

I tried with something like below:

<simpletable> <strow> <stentry> <lines> Shall I compare thee to a summer&#39;s day? Thou art more lovely and more temperate:Rough winds do shake the darling buds of May, new lines <apiname>name of api</apiname> some text <keyword>new keyword</keyword> fd </lines> </stentry> </strow> </simpletable>

Text is wrapping fine and not going outside of table. Can you share your use case ? Have you applied any properties on table like width, height?

 

Thanks and Regards,

Surbhi Maheshwari

kautuk_sahni
Community Manager
Community Manager
August 1, 2024

@joshm19816095 Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
Adobe Employee
August 16, 2024

Couple of options without troubling your writers.

  1. use CSS property line-break: anywhere Challenge with this is that it will break words also. Not sure if you will want that.
  2. Write a small JavaScript plugin in the native PDF to remove &nbsp; text for lines text and replace with normal white space. Sample JS is given here: https://stackoverflow.com/questions/34743681/how-do-you-wrap-contents-with-nbsp
August 16, 2024

Thanks so much for your above and beyond attention to my issue! I really appreciate it, Vivek!

I will definitely look into these suggestions to help out our authors. 

 

Thanks again!

Josh