open pdf form itextsharp c# : Remove text watermark from pdf Library control class asp.net web page html ajax primefaces_user_guide_5_217-part1556

PrimeFaces User Guide
public class TableBean {
//...
public void onRowReorder(ReorderEvent event) {
//int from = event.getFromIndex();
//int end = event.getEndIndex();
}
}
Reordering Columns
Columns of the table can be reordered using drag&drop as well. Set draggableColumns attribute to 
true to enable this feature. Optional colReorder ajax behavior is provided to listen to reorder events 
at server side.
<p:dataTable var="car" value="#{tableBean.cars}" draggableColumns="true">
<p:column headerText="Model">
#{car.model}
</p:column>
//columns
</p:dataTable>
Responsive DataTable
DataTable has two responsive modes; priority and reflow. In priority mode, responsiveness is based 
on column priorities that vary between 1 and 6. Lower value means higher priority. On the other 
hand in reflow mode that is enabled by setting reflow to true, all columns will be visible but 
displayed as stacked.
Ajax Behavior Events
Event
Listener Parameter
Fired
page
org.primefaces.event.data.PageEvent
On pagination.
sort
org.primefaces.event.data.SortEvent
When a column is sorted.
filter
org.primefaces.event.data.FilterEvent
On filtering.
rowSelect
org.primefaces.event.SelectEvent
When a row is being selected.
rowUnselect
org.primefaces.event.UnselectEvent
When a row is being unselected.
rowEdit
org.primefaces.event.RowEditEvent
When a row is edited.
rowEditInit
org.primefaces.event.RowEditEvent
When a row switches to edit mode
rowEditCancel
org.primefaces.event.RowEditEvent
When row edit is cancelled.
colResize
org.primefaces.event.ColumnResizeEvent When a column is being selected.
171
Remove text watermark from pdf - delete, remove text from PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Allow C# developers to use mature APIs to delete and remove text content from PDF document
how to erase text in pdf online; delete text from pdf with acrobat
Remove text watermark from pdf - VB.NET PDF delete text library: delete, remove text from PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
VB.NET Programming Guide to Delete Text from PDF File
how to delete text in pdf preview; delete text from pdf preview
PrimeFaces User Guide
Event
Listener Parameter
Fired
toggleSelect
org.primefaces.event.ToggleSelectEvent When header checkbox is toggled.
colReorder
-
When columns are reordered.
rowSelectRadio
org.primefaces.event.SelectEvent
Row selection with radio.
rowSelectCheckbox
org.primefaces.event.SelectEvent
Row selection with checkbox.
rowUnselectCheckbox
org.primefaces.event.UnselectEvent
Row unselection with checkbox.
rowDblselect
org.primefaces.event.SelectEvent
Row selection with double click.
rowToggle
org.primefaces.event.ToggleEvent
Row expand or collapse.
contextMenu
org.primefaces.event.SelectEvent
ContextMenu display.
cellEdit
org.primefaces.event.CellEditEvent
When a cell is edited.
rowReorder
org.primefaces.event.ReorderEvent
On row reorder.
For example, datatable below makes an ajax request when a row is selected with a click on row.
<p:dataTable var="car" value="#{carBean.model}">
<p:ajax event=”rowSelect” update=”another_component” />
//columns
</p:dataTable>
Moreover org.primefaces.event.data.PostSortEvent and org.primefaces.event.data.PostFilterEvent 
are provided as component system events that can used via f:event tag.
Client Side API
Widget: PrimeFaces.widget.DataTable
Method
Params
Return Type
Description
getPaginator()
-
Paginator
Returns the paginator insance.
clearFilters()
-
void
Clears all column filters
getSelectedRowsCount()
Number
Returns number of selected rows.
selectRow(r, silent)
r: number or tr
element as jQuery
object, 
silent: flag to fire row
select ajax behavior
void
Selects the given row.
unselectRow(r, silent)
r: number or tr
element as jQuery
object, 
silent: flag to fire row
select ajax behavior
void
Unselects the given row.
unselectAllRows()
-
void
Unselects all rows.
172
C# PDF Page Delete Library: remove PDF pages in C#.net, ASP.NET
console application. Able to remove a single page from PDF document. Ability to remove a range of pages from PDF file. Free trial package
pdf editor delete text; how to delete text from a pdf document
C# PDF Password Library: add, remove, edit PDF file password in C#
String outputFilePath = Program.RootPath + "\\" Remove.pdf"; // Remove password in the input file and output to a new file. int
delete text pdf acrobat professional; delete text pdf document
PrimeFaces User Guide
Method
Params
Return Type
Description
toggleCheckAll()
-
void
Toggles header checkbox state.
filter()
-
Void
Filters the data.
selectAllRows()
-
void
Select all rows.
selectAllRowsOnPage()
-
void
Select all rows on current page.
unselectAllRowsOnPage()
-
void
Unselect all rows on current page.
Skinning
DataTable resides in a main container element which style and styleClass options apply. As skinning
style classes are global, see the main theming section for more information. Following is the list of 
structural style classes;
Class
Applies
.ui-datatable
Main container element
.ui-datatable-data
Table body
.ui-datatable-empty-message
Empty message row
.ui-datatable-header
Table header
.ui-datatable-footer
Table footer
.ui-sortable-column
Sortable columns
.ui-sortable-column-icon
Icon of a sortable icon
.ui-expanded-row-content
Content of an expanded row
.ui-row-toggler
Row toggler for row expansion
.ui-editable-column
Columns with a cell editor
.ui-cell-editor
Container of input and output controls of an editable cell
.ui-cell-editor-input
Container of input control of an editable cell
.ui-cell-editor-output
Container of output control of an editable cell
.ui-datatable-even
Even numbered rows
.ui-datatable-odd
Odd numbered rows
.ui-datatable-scrollable
Main container element of a scrollable table.
.ui-datatable-scrollable-header
Header wrapper of a scrollable table.
.ui-datatable-scrollable-header-box
Header container of a scrollable table.
.ui-datatable-scrollable-body
Body container of a scrollable table.
.ui-datatable-scrollable-footer
Footer wrapper of a scrollable table.
173
C# PDF bookmark Library: add, remove, update PDF bookmarks in C#.
Ability to remove and delete bookmark and outline entry.GetLocation()); Console.WriteLine("Text: " + entry.GetText NET Sample Code: Update PDF Document Outline
how to delete text from a pdf in acrobat; erase pdf text online
C# PDF metadata Library: add, remove, update PDF metadata in C#.
Add metadata to PDF document in C# .NET framework program. Remove and delete metadata from PDF file. Also a PDF metadata extraction control.
how to delete text in a pdf file; how to delete text from a pdf
PrimeFaces User Guide
Class
Applies
.ui-datatable-scrollable-footer-box
Footer container of a scrollable table.
.ui-datatable-resizable
Main container element of a resizable table.
.ui-datatable-frozencolumn
Frozen columns.
174
C# PDF url edit Library: insert, remove PDF links in C#.net, ASP.
Able to insert and delete PDF links. Able to embed link to specific PDF pages. Easy to put link into specified position of PDF text, image and PDF table.
how to delete text in a pdf acrobat; acrobat remove text from pdf
C# PDF File Compress Library: Compress reduce PDF size in C#.net
NET framework. Remove bookmarks, annotations, watermark, page labels and article threads from PDF while compressing. C# class demo
how to delete text in pdf file; how to remove highlighted text in pdf
PrimeFaces User Guide
3.34 DefaultCommand
Which command to submit the form with when enter key is pressed a common problem in web apps
not just specific to JSF. Browsers tend to behave differently as there doesn’t seem to be a standard
and even if a standard exists, IE probably will not care about it. There are some ugly workarounds
like placing a hidden button and writing javascript for every form in your app. DefaultCommand
solves this problem by normalizing the command(e.g. button or link) to submit the form with on
enter key press.
Info
Tag
defaultCommand
Component Class
org.primefaces.component.defaultcommand.DefaultCommand
Component Type
org.primefaces.component.DefaultCommand
Component Family
org.primefaces.component
Renderer Type
org.primefaces.component.DefaultCommandRenderer
Renderer Class
org.primefaces.component.defaultcommand.DefaultCommandRenderer
Attributes
Name
Default
Type
Description
id
null
String
Unique identifier of the component
rendered
true
Boolean
Boolean value to specify the rendering of the 
component, when set to false component will not be
rendered.
binding
null
Object
An el expression that maps to a server side 
UIComponent instance in a backing bean
widgetVar
null
String
Name of the client side widget
target
null
String
Identifier of the default command component.
scope
null
String
Identifier of the ancestor component to enable 
multiple default commands in a form.
Getting Started with the DefaultCommand
DefaultCommand  must  be  nested  inside  a  form  requires target  option  to  reference  a clickable
command. Example below triggers btn2 when enter key is pressed. Note that an input must have
focused due to browser nature.
175
C# PDF Convert to Word SDK: Convert PDF to Word library in C#.net
key. Quick to remove watermark and save PDF text, image, table, hyperlink and bookmark to Word without losing format. Powerful components
pdf editor online delete text; delete text pdf files
C# PDF Text Redact Library: select, redact text content from PDF
Text: Delete Text from PDF. Text: Replace Text in PDF. Image: Remove Image from PDF Page. Image: Copy, Paste Edit, Delete Metadata. Watermark: Add Watermark to PDF
how to delete text in pdf converter; pdf text watermark remover
PrimeFaces User Guide
<h:form id="form">
<h:panelGrid columns="3" cellpadding="5">
<h:outputLabel for="name" value="Name:" style="font-weight:bold"/>
<p:inputText id="name" value="#{defaultCommandBean.text}" />
<h:outputText value="#{defaultCommandBean.text}" id="display" />
</h:panelGrid>
<p:commandButton value="Button1" id="btn1" actionListener="#{bean.submit1}" 
ajax="false"/>
<p:commandButton value="Button2" id="btn2" actionListener="#{bean.submit2}" />
<h:commandButton value="Button3" id="btn3" actionListener="#{bean.submit3}" />
<p:defaultCommand target="bt2" />
</h:form>
Scope
If you need multiple default commands on same page use scope attribute that refers to the ancestor 
component of the target input.
176
C# PDF Text Highlight Library: add, delete, update PDF text
etc. Able to remove highlighted text in PDF document in C#.NET. Support to change PDF highlight color in Visual C# .NET class. Able
delete text pdf preview; deleting text from a pdf
PrimeFaces User Guide
3.35 Diagram
Diagram is generic component to create visual elements and connect them on a web page. SVG is 
used on modern browsers and VML on IE 8 and below. Component is highly flexible in terms of 
api, events and theming.
Info
Tag
diagram
Component Class
org.primefaces.component.diagram.Diagram
Component Type
org.primefaces.component.Diagram
Component Family
org.primefaces.component
Renderer Type
org.primefaces.component.DiagramRenderer
Renderer Class
org.primefaces.component.diagram.DiagramRenderer
Attributes
Name
Default
Type
Description
id
null
String
Unique identifier of the component
rendered
true
Boolean
Boolean value to specify the rendering of the 
component, when set to false component will not be 
rendered.
binding
null
Object
An el expression that maps to a server side 
UIComponent instance in a backing bean
widgetVar
null
String
Name of the client side widget
value
null
String
Model of the diagram.
converter
null
Converter
/String
An el expression or a literal text that defines a converter
for the component. When it’s an EL expression, it’s 
resolved to a converter instance. In case it’s a static text,
it must refer to a converter id.
177
PrimeFaces User Guide
Name
Default
Type
Description
style
null
String
Inline style of the diagram.
styleClass
null
String
Style class of the diagram.
Getting started with the Diagram
Diagram requires a backend model to display.
<p:diagram value="#{diagramBasicView.model}" style="height:400px" />
There are various concepts in diagram model;
- Element: Main type to be connected.
- EndPoint: Ports of elements to be used in connection.
- Connector: Connector to join elements.
- Overlay: Decorators over connectors and endpoints.
public class BasicView {
private DefaultDiagramModel model;
@PostConstruct
public void init() {
model = new DefaultDiagramModel();
model.setMaxConnections(-1);
Element elementA = new Element("A", "20em", "6em");
elementA.addEndPoint(new DotEndPoint(EndPointAnchor.BOTTOM));
Element elementB = new Element("B", "10em", "18em");
elementB.addEndPoint(new DotEndPoint(EndPointAnchor.TOP));
Element elementC = new Element("C", "40em", "18em");
elementC.addEndPoint(new DotEndPoint(EndPointAnchor.TOP));
model.addElement(elementA);
model.addElement(elementB);
model.addElement(elementC);
model.connect(new Connection(elementA.getEndPoints().get(0), 
elementB.getEndPoints().get(0)));        
model.connect(new Connection(elementA.getEndPoints().get(0), 
elementC.getEndPoints().get(0)));
}
public DiagramModel getModel() {
return model;
}
}
In diagram above, there are 3 elements each having endpoints of dot type. After adding them to the 
model, 2 connections are made, first one being A to B and second one from A to C.
178
PrimeFaces User Guide
Elements
Elements are the main part of diagram. Styling is done with css and positioning can be done using 
model. An element should have at least width and height defined to be displayed on page. They can 
be styled globally using .ui-diagram-element style class or individually using the styleClass 
property on DiagramElement class.
EndPoints
EndPoints are the ports available on an element that can be used for connections. An endpoint has a 
location defined by EndPointAnchor. Anchors can be static like "TopLeft" or dynamic like 
"AutoDefault". There are 4 types of EndPoints differentiated by their shapes;
- BlankEndPoint
- DotEndPoint
- RectangleEndPoint
- ImagEndPoint
An endpoint is added to an element using addEndPoint api;
element.addEndPoint(new DotEndPoint(EndPointAnchor.TOP));
Connections
A connection requires two endpoints, connector and optional decorators like overlays. There are 
four connector types;
- Bezier
- FlowChart
- Straight
- StateMachine
Default is bezier and it can be customized using default connector method globally in model or at 
connection level.
Global
DiagramModel model = new DefaultDiagramModel();
FlowChartConnector connector = new FlowChartConnector();
connector.setPaintStyle("{strokeStyle:'#C7B097',lineWidth:3}");
model.setDefaultConnector(connector);
Per Connection
model.connect(new Connection(elementA.getEndPoints().get(0), 
elementB.getEndPoints().get(0), new FlowChartConnector()));
Overlays
Overlays are decorators for connectors and endpoints. Available ones are;
179
PrimeFaces User Guide
- ArrowOverlay
- DiamondOverlay
- LabelOverlay
Example below adds label and arrow for the connector;
Connection conn = new Connection(from, to);
conn.getOverlays().add(new ArrowOverlay(20, 20, 1, 1));
conn.getOverlays().add(new LabelOverlay(label, "flow-label", 0.5));
Dynamic Diagrams
A diagram can be edited after being initialized, to create new connections an element should be set 
as source and to receive new connections it should be a target. Ajax event callbacks such as 
"connect", "disconnect" and "connectionChange" are available.
ElementA.setSource(true);
ElementB.setTarget(true);
Ajax Behavior Events
Diagram provides ajax behavior event callbacks invoked by interactive diagrams.
Event
Listener Parameter
Fired
connect
org.primefaces.event.diagram.ConnectEvent
On new connection.
disconnect
org.primefaces.event.diagram.DisconnectEvent
When a connection is 
removed.
connectionChange
org.primefaces.event.diagram.ConnectionChange
When a connection has 
changed.
180
Documents you may be interested
Documents you may be interested