This is a migrated thread and some comments may be shown as answers.

RadEditor - export to pdf problem (final pdf)

1 Answer 223 Views
Editor
This is a migrated thread and some comments may be shown as answers.
wnl
Top achievements
Rank 1
wnl asked on 11 Oct 2011, 03:35 PM
Hi,
I have two problems with exporting to PDF from RadEditor.
My html code is:
<div style="font-size: 10pt; line-height: 1.2; font-family: calibri; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; text-align: justify;">
<p style="text-align: right;">2011</p>
<br />
<h1 style="font-size: 14pt; font-weight: bold; text-align: center;">LOREM IPSUM</h1>
<span style="position: relative; bottom: -5px;">LOREM:</span>
<ul style="margin-top: 0px; padding-top: 0px; padding-left: 15px;">
    <li style="margin-top: 0px; padding-top: 0px;">cccccccccccccccccc vvvvvvvvvvvvvv</li>
    <li><span style="line-height: 15px; font-family: calibri; font-size: 13px;">cccccccccccccccccc vvvvvvvvvvvvvv</span></li>
    <li><span style="line-height: 15px; font-family: calibri; font-size: 13px;">cccccccccccccccccc vvvvvvvvvvvvvv</span></li>
</ul>
<p style="font-size: 8pt; font-weight: bold; text-align: center;">Pouczenie:</p>
<ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-left: 15px; font-size: 8pt; list-style-type: decimal;">
    <li>LOREM IPSUM</li>
    <li><span style="line-height: 12px; font-family: calibri; font-size: 11px;">LOREM IPSUM</span>:
    <ol style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-left: 15px; font-size: 8pt; list-style-type: decimal;">
        <li><span style="line-height: 12px; font-family: calibri; font-size: 11px;">LOREM IPSUM</span></li>
        <li><span style="line-height: 12px; font-family: calibri; font-size: 11px;">LOREM IPSUM</span></li>
        <li><span style="line-height: 12px; font-family: calibri; font-size: 11px;">LOREM IPSUM</span></li>
    </ol>
    </li>
    <li><span style="line-height: 12px; font-family: calibri; font-size: 11px;">LOREM IPSUM</span></li>
    <li><span style="line-height: 12px; font-family: calibri; font-size: 11px;">LOREM IPSUM</span></li>
</ol>
</div>
I pasted it to your demo sample: http://demos.telerik.com/aspnet-ajax/editor/examples/pdfexport/defaultcs.aspx
After exporting:
- there is a big space at the top
- bottom list left numbers (they are letters (a,b and c).
Screen - http://imageshack.us/photo/my-images/840/przechwytywaniek.png/
I have Telerik in version: 2010.1.519.35.
How to fix this?
Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 14 Oct 2011, 10:43 AM
Hi Wnl,


1) Unfortunately, the third party APOC pdf exporter tool that RadEditor uses does not support position: relative; bottom: -5px; inline css attributes and it is not possible currently to reduce the gap between the LOREM span and the UL list.

2) The APOC library does not recognize the list-style-type CSS property and always renders the first level sub lists with alphabetical characters. If more users request this feature we will try to implement it.

Best regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
wnl
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or