open pdf form itextsharp c# : Remove text from pdf SDK software API wpf winforms asp.net sharepoint primefaces_user_guide_5_255-part1598

PrimeFaces User Guide
9.5 Putting It All Together
PrimeFaces Showcase has various push demos, in this section two of them are covered.
9.5.1 Counter
Counter is a global counter where each button click increments the count value and new value is 
pushed to all subscribers.
View page has an outputText to display the value, a button to increment current value to push, a 
socket component to connect to /counter channel and finally the onMessage client side callback to 
update the UI.
<h:form>
<h:outputText value="#{counterView.count}" styleClass="display" />
<p:commandButton value="Click" actionListener="#{counterView.increment}" />
</h:form>
<p:socket onMessage="handleMessage" channel="/counter" />
<script type="text/javascript">
function handleMessage(data) {
$('.display').text(data);
</script>
package org.primefaces.examples.push.counter;
import java.io.Serializable;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;
import org.primefaces.push.EventBus;
import org.primefaces.push.EventBusFactory;
@ManagedBean
@ApplicationScoped
public class CounterView implements Serializable{
private volatile int count;
public int getCount() {
return count;
}
public void setCount(int count) {
this.count = count;
}
public void increment() {
count++;
EventBus eventBus = EventBusFactory.getDefault().eventBus();
eventBus.publish("/counter", String.valueOf(count));
}
}
551
Remove text 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
delete text in pdf file online; how to copy text out of a pdf
Remove text 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 remove text watermark from pdf; pdf editor online delete text
PrimeFaces User Guide
increment button actionlistener first adds  one to the counter value, gets an EventBus and then
pushes the new value to all connected clients. Final piece is writing the CounterResource to handle
messages whenever a data is pushed.
package org.primefaces.examples.push.counter;
import org.primefaces.push.annotation.OnMessage;
import org.primefaces.push.annotation.PushEndpoint;
import org.primefaces.push.impl.JSONEncoder;
@PushEndpoint("/counter")
public class CounterResource {
@OnMessage(encoders = {JSONEncoder.class})
public String onMessage(String count) {
return count;
}
}
In case you’d like to update components and/or invoke listeners in your backing bean on broadcast,
you can use the optional message ajax behavior to implement the same functionality but with an
extra request.
<h:form id="form">
<h:outputText id="out" value="#{globalCounter.count}" />
<p:commandButton value="Click" actionListener="#{globalCounter.increment}" />
</h:form>
<p:socket channel="/counter">
<p:ajax event="message" update="form:out" />
</p:socket>
552
C# PDF remove image library: remove, delete images from PDF in C#.
Delete Text from PDF. Text: Replace Text in PDF. Image: Insert Image to PDF. Image: Remove Image from PDF Page. Image: Copy, Paste, Cut
how to edit and delete text in pdf file online; how to erase text in pdf
VB.NET PDF remove image library: remove, delete images from PDF in
PDF Write. Text: Insert Text to PDF. Text: Delete Text from PDF. Text: Replace Text in PDF. Image: Insert Image to PDF. Image: Remove Image from PDF Page. Image
erase pdf text online; delete text pdf document
PrimeFaces User Guide
9.5.2 FacesMessage
This sample shows how to push FacesMessages from one client to all others and display them using
Growl Component.
<p:growl widgetVar="growl" showDetail="true" />
<h:form>
<p:panel header="Growl">
<h:panelGrid columns="2">
<p:outputLabel for="summary" value="Summary: " /> 
<p:inputText id="summary" value="#{growlBean.summary}" required="true" />
<p:outputLabel for="detail" value="Detail: " /> 
<p:inputText id="detail" value="#{growlBean.detail}" required="true" />
</h:panelGrid>
<p:commandButton value="Send" actionListener="#{growlBean.send}" />
</p:panel>
</h:form>
<p:socket onMessage="handleMessage" channel="/notify" />
<script type="text/javascript">
function handleMessage(facesmessage) {
facesmessage.severity = 'info';
PF('growl').show([facesmessage]);
}
</script>
package org.primefaces.examples.view;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import org.primefaces.push.EventBus;
import org.primefaces.push.EventBusFactory;
@ManagedBean
@RequestScoped
public class GrowlBean {
private final static String CHANNEL = "/notify";
private String text, summary, detail;
//getters-setters
public void send() {
EventBus eventBus = EventBusFactory.getDefault().eventBus();
eventBus.publish(CHANNEL, new FacesMessage(summary, detail));
}
}
553
VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.
Able to remove a single page from adobe PDF document in VB.NET. Ability to remove consecutive pages from PDF file in VB.NET. Enable
remove text from pdf online; remove text from pdf acrobat
VB.NET PDF Password Library: add, remove, edit PDF file password
Remove password from PDF. Dim outputFilePath As String = Program.RootPath + "\\" Remove.pdf" ' Remove password in the input file and output to a new file.
pdf text watermark remover; pdf text remover
PrimeFaces User Guide
NotifyResource simply encodes the pushed messages as JSON.
package org.primefaces.examples.push.notify;
import javax.faces.application.FacesMessage;
import org.primefaces.push.annotation.OnMessage;
import org.primefaces.push.annotation.PushEndpoint;
import org.primefaces.push.impl.JSONEncoder;
@PushEndpoint("/notify")
public class NotifyResource {
@OnMessage(encoders = {JSONEncoder.class})
public FacesMessage onMessage(FacesMessage message) {
return message;
}
}
554
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
how to delete text from pdf with acrobat; how to delete text from a pdf in acrobat
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
pull text out of pdf; remove text watermark from pdf online
PrimeFaces User Guide
9.6 Tips and Tricks
Dynamic Paths
Client side API would be handy to create dynamic channels, channel name of the socket does not 
need to be static and you can create dynamic channels on runtime since a channel is basically a path
name. @PathParam is very handy to automatically parse the Path and assign the path tokens to 
variables.
See chat sample in showcase for an example of dynamic channels used to send private messages.
Proxies
Proxies are problematic not just for PrimeFaces Push - Atmosphere solution but in all solutions. If
your proxy supports websockets, make sure to add the necessary configuration. Another solution
that is considered as a workaround is to override the default uri of the push server. Default uri is 
protocol://contextPath/primepush/channel, for example PrimeFaces online showcase is running on
jetty that is behind an apache mod proxy which doesn’t support websockets at time of the writing.
Solution is to configure PrimeFaces to use another push server like;
<context-param>
<param-name>primefaces.PUSH_SERVER_URL</param-name>
<param-value>http://www.primefaces.org:8080</param-value>
</context-param>
So that socket component bypasses the proxy and directly communicates with the application.
Supported Server and Client Environments
Atmosphere does a agreat job in supporting different servers and browsers. See the detailed list at;
https://github.com/Atmosphere/atmosphere/wiki/Supported-WebServers-and-Browsers
Scalability
Atmosphere is build to scale via plugins such as JMS, Redix, XMPP, Hazelcast and more. Refer to
atmosphere  documentation  to  see  how  to  configure  atmosphere  in  more  than  one  server.
PushServlet extends from AtmosphereServlet so any configuration option for AtmosphereServlet
also applies PushServlet.
555
C# PDF Digital Signature Library: add, remove, update PDF digital
Delete Text from PDF. Text: Replace Text in PDF. Image: Insert Image to PDF. Image: Remove Image from PDF Page. Image: Copy, Paste, Cut
delete text pdf; online pdf editor to delete text
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
erase text from pdf; how to delete text from a pdf document
PrimeFaces User Guide
10. PrimeFaces Mobile
PrimeFaces Mobile (PFM) is a UI Kit to create JSF applications optimized for mobile devices. PFM
is built on top of jQuery Mobile, a touch-optimized HTML5 UI framework providing support for 
various platforms.
In addition to the seamless integration with jQuery Mobile, PFM features a Mobile Renderkit for 
popular PrimeFaces components, ajax framework extensions, mobile ajax behavior events, 
integrated navigation model, lazy loading of pages, responsive widgets and more.
10.1 Setup
Mobile ships with PrimeFaces Core so no additional download is required.
Configuration
A mobile navigation handler is necessary inside faces configuration to enable navigations support.
<application>
<navigation-handler>
org.primefaces.mobile.application.MobileNavigationHandler
</navigation-handler>
</application>
Taglib
PFM provides mobile specific components with the following taglib.
xmlns:pm="http://primefaces.org/mobile"
RenderKit
RenderKit is the core part of PFM featuring  optimized renderers for mobile environments. There 
are two main ways to enable PFM RenderKit.
Core view tag has a renderKitId attribute to set the renderer kit of the page.
<f:view renderKitId="PRIMEFACES_MOBILE" />
If your application fully consists of mobile pages, then a global configuration in faces configuration 
file should be preferred instead of per page configuration.
<application>
<default-render-kit-id>PRIMEFACES_MOBILE</application>
</application>
556
PrimeFaces User Guide
10.2 Pages
A mobile page is a regular facelets xhtml file with mobile page containers defined with pm:page.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile">
<f:view renderKitId="PRIMEFACES_MOBILE" />
<h:head>
</h:head>
<h:body>
<pm:page>
<pm:header title="Basic Page"></pm:header>
<pm:content></pm:content>
</pm:page>
</h:body>
</html>
A single page xhtml view can have more than one page. By default the first page is visible on load.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile">
<f:view renderKitId="PRIMEFACES_MOBILE" />
<h:head>
</h:head>
<h:body>
<pm:page id="main">
<pm:header title="Main Page"></pm:header>
<pm:content></pm:content>
</pm:page>
<pm:page id="second">
<pm:header title="Second Page"></pm:header>
<pm:content></pm:content>
</pm:page>
</h:body>
</html>
557
PrimeFaces User Guide
10.2 Navigations
PFM supports all kinds of standard navigations with the addition of a custom navigation model.
Internal
Internal navigation is between pages in the same xhtml view. Outcome should have the pm: prefix 
for this kind of navigation. Using the multi page sample at section 10.1;
<p:button outcome="pm:second" />
<p:link outcome="pm:second" />
Button and Link components displays the page whose id is second. In case you'd like to navigate 
after a POST request, usage would be similar.
<p:commandButton value="Go to Second" action="#{bean.go}" />
public String go() {
return "pm:second";
}
External
External navigations to another xhtml in same domain or a resource in another domain is same as 
standard approach.
<p:button outcome="/ui/home" value="Home" />
<p:button href="http://www.primefaces.org
" value="Home" />
Transitions
Various animations are available to run during the navigation. Name of the effect is appended to the 
outcome. In addition, reverse option is provided for back navigations.
<p:button outcome="pm:second?transition=pop" />
<p:link outcome="pm:second?transition=flip&reverse=true" />
List of possible transitions is fade, pop, flip, turn, flow, slide, slidefade, slideup and slidedown. Fade
is the default transition and to turn off animation, set none as the value.
Client API
A client side API is available to navigate manually from a custom javascript code. Signature is;
PrimeFaces.Mobile.navigate(to, cfg);
PrimeFaces.Mobile.navigate('#second', {
reverse: true|false,
transition: 'fade'
});
558
PrimeFaces User Guide
10.3 Components
10.3.1 Content
Content is container component for the content area of a page.
Info
Tag
content
Component Class
org.primefaces.mobile.component.content.Content
Component Type
org.primefaces.mobile.Content
Component Family
org.primefaces.mobile.component
Renderer Type
org.primefaces.mobile.component.ContentRenderer
Renderer Class
org.primefaces.mobile.component.content.ContentRenderer
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
style
null
String
Inline style of the component.
styleClass
null
String
Style class of the component.
Getting Started with the Content
Content is a children component of a page.
<pm:page>
<pm:content>
//page content
</pm:content>
</pm:page>
559
PrimeFaces User Guide
10.3.2 Field
Field is a responsive layout component for label-input pairs.
Info
Tag
field
Component Class
org.primefaces.mobile.component.field.Field
Component Type
org.primefaces.mobile.Field
Component Family
org.primefaces.mobile.component
Renderer Type
org.primefaces.mobile.component.FieldRenderer
Renderer Class
org.primefaces.mobile.component.field.FieldRenderer
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
Getting Started with the Field
Field is used as the container of a label and an input component. As a responsive component, field 
displays the optimal placement for its children based on available width.
<pm:field>
<p:outputLabel for="text" value="Text:" />
<p:inputText id="txt" />
</pm:field>
560
Documents you may be interested
Documents you may be interested