HTML Editor/ pdfsettings command

Modified on Mon, Oct 30, 2023 at 10:54 AM

Blocks Command: pdfsettings

 

Applies to PDF Blocks type. It displays an html Editor for users. Contents will be converted to PDF and inserted in the block.

For default settings leave the value field empty.

Allowed values:

menu

Displays a menu when user clicks inside the editor

Usage:

menu=basic
              menu=basicimage
                menu=default
                menu=text
                menu=standard
                menu=full
                menu=path that starts with ~/Storage/, use quotes if the path contains spaces

 

html

Shows a button to switch to html view.

Usage:

html=true

 

path

Location to select images from.

Usage:

path=personal
                path=company
                path=temp
                path=path that starts with ~/Storage/, use quotes if the path contains spaces

 

upload

Image are uploaded to the given path by default. Use the upload option prevent users from uploading.

Usage: (one of the following)

                upload=false
                upload=no
                noupload

 

width

Set the width of the control (default 100%)

Usage:  

width=100%
                width=500
                width=500px

height

Set the height of the control (default 400px)

Usage:

                height=400
                height=400px

 

nav

Set navigation bar location

Usage:

                nav=pagetop
                nav=floating
                nav=onfocus                     (Default)
                nav=ribbonbar
                nav=ribbonbaronfocus
                nav=ribbonbarfloating
                nav=ribbonbarpagetop

 

 

 

skin

Change the default look of the editor (skin name must match case)

Usage:

                html=Black
                html=BlackMetroTouch
                html=Bootstrap
                html=Default
                html=Glow


Valid Skins:

Black, BlackMetroTouch, Bootstrap, Default, Glow, Material, Metro, MetroTouch, Office2007, Office2010Black, Office2010Blue, Office2010Silver, Outlook, Silk, Simple, Sunset, Telerik, Vista, Web20, WebBlue, Windows7

 

 

Default Menu and skin

 

 

Default Tools File

<root>      

      <tools enabled="true">        

            <tool name="Undo" />

            <tool name="Redo" />

            <tool separator="true"/>

            <tool name="Cut" />

            <tool name="Copy" />

            <tool name="Paste" shortcut="CTRL+!"/>          

      </tools>

      <tools name="InsertToolbar" dockable="true" enabled="true" >

            <tool name="AjaxSpellCheck"/>

            <tool name="ImageManager" shortcut="CTRL+M"/>               

            <tool separator="true"/>

            <tool name="InsertSymbol" />

      </tools>

      <tools enabled="true">        

            <tool name="Print" />

            <tool name="FindAndReplace" />

            <tool name="SelectAll" />

            <tool separator="true"/>

            <tool name="InsertDate" />

            <tool name="InsertTime" />

      </tools>

      <tools enabled="true" dockable="true">

            <tool name="Bold" />

            <tool name="Italic" />

            <tool name="Underline" />

            <tool name="StrikeThrough" />

            <tool separator="true"/>

            <tool name="JustifyLeft" />

            <tool name="JustifyCenter" />

            <tool name="JustifyRight" />

            <tool name="JustifyFull" />

            <tool name="JustifyNone" />

            <tool separator="true"/>

            <tool name="Superscript" />

            <tool name="Subscript" />

            <tool separator="true"/>

            <tool name="ConvertToLower" />

            <tool name="ConvertToUpper" />            

            <tool name="Indent" />

            <tool name="Outdent" />

            <tool name="InsertOrderedList" />

            <tool name="InsertUnorderedList"/>

            <tool name="ToggleScreenMode" />

      </tools>

      <tools name="DropdownToolbar" dockable="true" >

            <tool name="ForeColor" />

            <tool name="BackColor"/>

            <tool separator="true"/>

            <tool name="FontName"/>

            <tool name="FontSize"/>

            <tool name="RealFontSize"/>

            <tool name="FormatBlock"/>

            <tool name="Zoom" />

      </tools>

 

      <symbols>

      </symbols>

      <fontNames>

      </fontNames>

      <fontSizes>

      </fontSizes>

      <colors>

      </colors>

<dialogParameters>
</dialogParameters>
<languages>
 </languages>

</root>

 

 

FONTS

 Fonts can be added in the xml as such

            <fontNames>

<item name="Arial" />    
<item name="Arial Narrow" />
<item name="Arial Black" />
<item name="Arial " />
<item name="Impact Regular" />
 <item name="Roland Medium" />

            </fontNames>

 

IMPORTANT NOTE: Make sure that the fonts reside on the user’s computer and the server. The control used is Telerik RadEditor and it does not support woff fonts.

 

 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article