While converting HTML field to PFD images table Present in HTML field r not getting converted to PDF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2023 08:05 AM - edited 07-12-2023 03:27 AM
While converting HTML field to PFD images, tables, alignments, bold words, line and page break Present in HTML field are not getting converted to PDF is there any way we can convert this to PDF without loosing format.
HTML code
<div class="col-lg-12">
<div class="row panel-container">
<div class="col-xs-12 no-padding sub-panel">
<div class="panel panel-default">
<div class="panel-heading clearfix" style = "background-color :#dcafff !important";>
<span class=" pull-left" style="font-size: 24px !important;">Announcements</span>
<!--<a class="pull-right" id="ModalNews" ng-click="c.openModal()" ng-if="data.showView">View All</a> -->
</div>
<div class="panel-body" style = "height: 500px !important";>
<div class="table" ng-repeat="anounce in anounces">
<h4 href='' style = "color: black" ><a ng-click="c.openModal(anounce.sys_id)">{{anounce.anouncement_title}}</a></h4>
<b>{{anounce.anouncedate}}</b>
<br>
<div class="dividersplit"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Model Pop Script -->
<script type="text/ng-template" id="wd-modalnew">
<div class="panel panel-default" style = "width: 175%; margin-left: -215px;" >
<div class="panel-heading clearfix" style = "background-color :#eeeeee !important; font-size: 24px !important; font-weight: 600;">Announcement
<button style="font-size:24px; float: right;" title ="Close" ng-click="c.closex()" > <i class="fa fa-times" aria-hidden="true"> </i> </button>
<a style = "float: right;" target="_new" title ="Download PDF" href="/{{data.anounce1.table}}.do?PDF&sys_id={{data.anounce1.sys_id}}&sysparm_view=download_pdf">
<button style="font-size:24px"> <i class="fa fa-download"></i> </button>
</a>
</div>
<div class="panel-body">
<h4 style = "color: #a100ff; font-weight: 600;">{{data.anounce1.anouncement_title}}</h4>
<b>{{data.anounce1.anouncedate}}</b>
<br>
<div ng-bind-html = "data.anounce1.anouncedetails"> </div>
</div>
<div class="panel-footer clearfix">
<button class="btn btn-primary pull-right" style="margin-right : 15px;" ng-click="c.closeModal()">Close</button>
</div>
</div>
</script>
Client Script
PDF screenshot
Backend HTML field on table screenshot
@Ankur Bawiskar @Pradeep Sharma @Allen Andreas @Anurag Tripathi