web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Multiple line of text ...
Power Automate
Answered

Multiple line of text in PDF from HTML Compose

(0) ShareShare
ReportReport
Posted on by 52

Hello,

 

Does anyone know how do I show multiple line of text when I generate a PDF from HTML?

 

I know the key is to edit at the HTML before generating the PDF, but I have tried on editing my HTML in the Compose action to put on the multiple lines to be displayed, but still theyre displaying as a single line in my PDF generated. Currently, I am using the code below for displaying the text.

 

<p><textarea style="width: 20px; height: 100px;" cols="50" name="w3review" rows="4"> @{outputs('Get_item')?['body/DescriptionofBusinessOpportunity']}</textarea></p>

 

Really appreciate any help, thank you 🙂

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Airthiefs 

     

    I could give a try. Pls share the output of multiline text field.

     

    Thanks

  • Airthiefs Profile Picture
    52 on at

    Hi @ManishSolanki ,

     

    The output is in a dynamic content, but pls try with this multiline as example

     

    Objective: The primary goal of this project is to modernize and enhance the valve systems within chemical plants to improve operational efficiency, safety, and reduce maintenance downtime. The focus will be on upgrading valves to incorporate advanced technology, ensuring they meet industry standards, enhancing control, and minimizing potential leakages or failures.

    Scope: The project will encompass a comprehensive assessment of existing valve systems within chemical plants. It involves the identification of outdated or underperforming valves, assessing their criticality to operations, and proposing strategic upgrades or replacements. The scope will also cover:

    1. Valve Technology Assessment: Analyzing current valve technologies and comparing them with state-of-the-art options available in the market.

    2. Risk Analysis: Identifying potential risks associated with existing valves, including failure rates, maintenance needs, and safety concerns.

    3. Cost-Benefit Analysis: Evaluating the economic feasibility of upgrading valves by assessing potential cost savings in maintenance, downtime reduction, and increased operational efficiency.

    4. Technology Integration: Recommending specific valve technologies or systems that align with the unique requirements of chemical plants, considering factors like chemical compatibility, temperature, pressure, and regulatory compliance.

    5. Implementation Plan: Developing a phased implementation strategy that minimizes disruption to ongoing operations. This plan will include procurement, installation, testing, and training for plant personnel.

    6. Performance Monitoring: Establishing protocols for continuous monitoring of the upgraded valves to ensure they meet expected performance standards. This includes implementing predictive maintenance techniques to prevent failures and optimize maintenance schedules.

    Deliverables:

    1. Comprehensive report detailing the assessment of current valve systems.
    2. Technology recommendations with detailed specifications for upgraded valves.
    3. Cost analysis report highlighting potential savings and return on investment (ROI).
    4. Implementation plan outlining phases, timelines, and resource requirements.
    5. Training materials and sessions for plant operators and maintenance staff.
    6. Post-implementation performance reports and ongoing monitoring protocols.

    Benefits:

    1. Enhanced Safety: Reduced risk of leaks and failures, ensuring a safer working environment.
    2. Operational Efficiency: Improved control and reliability leading to increased productivity.
    3. Cost Savings: Reduced maintenance costs, minimized downtime, and optimized resource utilization.
    4. Compliance and Reputation: Meeting or exceeding industry standards enhances regulatory compliance and boosts the plant's reputation for safety and reliability.

    Stakeholders Involved:

    • Chemical plant management and stakeholders
    • Engineering and maintenance teams
    • Procurement and logistics personnel
    • Technology vendors and suppliers
    • Regulatory bodies for compliance checks

    Thank you so much!

  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Airthiefs 

     

    Assuming the multiline text field supports enhanced rich text capability so when I tried wrapping the input text between <p> tags, I got the similar result in output pdf file:

    <html>
    <body>
    <p>@{outputs('Get_item')?['body/DescriptionofBusinessOpportunity']}</p>
    </body>
    </html>

    Output:

    ManishSolanki_0-1703580989332.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Airthiefs Profile Picture
    52 on at

    Thank you so much @ManishSolanki . It works well, but first is to edit the settings of the column in sharepoint list into enriched text as you said.

  • Airthiefs Profile Picture
    52 on at

    Hi @ManishSolanki,

     

    I am having a problem where a weird codes appear in the rich text section when user want to re-edit the form, 

    Airthiefs_0-1704334454918.png

     

    do you know any solution that might be possible?

     

    Thank you!

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Airthiefs 

     

    Pls check the setting of the column, it should be multiline of text with enhanced rich text flag enabled:

    ManishSolanki_0-1704346530267.png

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

     

  • Airthiefs Profile Picture
    52 on at

    Hi, thank you for the reply, ya I had enabled the settings in sharepoint.

    Airthiefs_1-1704350215717.png

     

    I just solved the problem by using Rich text editor in Power App since I enabled the rich text in sharepoint.

     

    But right now, the problem is again in my pdf where the line goes into single line again altho I had did as what you said, before this, it just worked huhhuh.

     

    Before this, I put it here, and it just work just fine, but now after I made some changes on rich text, and enable it again, then it only output a single line.

    Airthiefs_0-1704350044980.png

     

     

    </tr>
    <tr style="height: 13px;">
    <td style="width: 261px; height: 13px;">Description of Business</td>
    <td style="width: 30.6979px; height: 13px;">:</td>
    <td style="width: 200px; height: 30px;">&nbsp;</td>
    </tr>
    </tbody>
    </table>
    <html>
    <body>
    <p>@{outputs('Get_item')?['body/DescriptionofBusinessOpportunity']}</p>
    </body>
    </html>
    <span style="color: #00a19c;"><strong>SECTION B: PROJECT ECONOMICS</strong></span>

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard