c# pdf reader using : Delete a page from a pdf file application control tool html azure .net online telerik_ui_for_winforms_courseware44-part836

this.subject = subject;
this.description = description;
this.location = location;
}
public Guid Id
{
get
{
return this.id;
}
set
{
if (this.id != value)
{
this.id = value;
this.OnPropertyChanged("Id");
}
}
}
public DateTime Start
{
get
{
return this.start;
}
set
{
if (this.start != value)
{
this.start = value;
this.OnPropertyChanged("Start");
}
}
}
public DateTime End
{
get
{
return this.end;
}
set
{
if (this.end != value)
{
this.end = value;
this.OnPropertyChanged("End");
}
}
}
public string Subject
{
get
{
return this.subject;
}
set
{
RadControls for Winforms
433
RadControls for Winforms
Delete a page from a pdf file - remove PDF pages in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Provides Users with Mature Document Manipulating Function for Deleting PDF Pages
delete blank pages in pdf online; add and delete pages in pdf online
Delete a page from a pdf file - VB.NET PDF Page Delete Library: remove PDF pages in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Visual Basic Sample Codes to Delete PDF Document Page in .NET
add and delete pages in pdf; delete page from pdf
To use your custom object, create MyAppointment instances and place them in a generic list before mapping 
and binding to the SchedulerBindingDataSource component.
if (this.subject != value)
{
this.subject = value;
this.OnPropertyChanged("Subject");
}
}
}
public string Description
{
get
{
return this.description;
}
set
{
if (this.description != value)
{
this.description = value;
this.OnPropertyChanged("Description");
}
}
}
public string Location
{
get
{
return this.location;
}
set
{
if (this.location != value)
{
this.location = value;
this.OnPropertyChanged("Location");
}
}
}
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
{
this.PropertyChanged(thisnew PropertyChangedEventArgs(propertyName));
}
}
#endregion
}
}
[VB] Binding to a List of Business Objects
Private Sub RadForm1_Load(sender As Object, e As EventArgs)
' create a list of MyAppointment objects
Dim appointments As New BindingList(Of MyAppointment)()
RadControls for Winforms
434
RadControls for Winforms
C# PDF File & Page Process Library SDK for C#.net, ASP.NET, MVC
C# File: Merge PDF; C# File: Split PDF; C# Page: Insert PDF pages; C# Page: Delete PDF pages; C# Read: PDF Text Extract; C# Read: PDF
delete pages from pdf acrobat reader; delete pages from pdf
VB.NET PDF File & Page Process Library SDK for vb.net, ASP.NET
your PDF document is unnecessary, you may want to delete this page adding a page into PDF document, deleting unnecessary page from PDF file and changing
add and remove pages from pdf file online; delete a page from a pdf in preview
Dim i As Integer = 0
While i < 10
' add every other appointment, populate with sample data
If (i Mod 2) = 0 Then
Dim appointmentNumber As Integer = i + 1
Dim myAppointment As New MyAppointment(DateTime.Now.AddHours(appointmentNumber), 
DateTime.Now.AddHours(appointmentNumber + 2), "Appointment " + 
appointmentNumber.ToString(), "Description for Appointment " + 
appointmentNumber.ToString(), "Conference room " + appointmentNumber.ToString())
appointments.Add(myAppointment)
End If
System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1)
End While
' create and configure a scheduler binding source
Dim dataSource As New SchedulerBindingDataSource()
' map the MyAppointment properties to the scheduler
Dim appointmentMappingInfo As New AppointmentMappingInfo()
appointmentMappingInfo.Start = "Start"
appointmentMappingInfo.[End] = "End"
appointmentMappingInfo.Summary = "Subject"
appointmentMappingInfo.Description = "Description"
appointmentMappingInfo.Location = "Location"
appointmentMappingInfo.UniqueId = "Id"
dataSource.EventProvider.Mapping = appointmentMappingInfo
' assign the generic List of MyAppointment as the EventProvider data source
dataSource.EventProvider.DataSource = appointments
Me.radScheduler1.DataSource = dataSource
End Sub
[C#] Binding to a List of Business Objects
private void RadForm1_Load(object sender, EventArgs e)
{
// create a list of MyAppointment objects
BindingList<MyAppointment> appointments = new BindingList<MyAppointment>();
for (int i = 0; i < 10; i++)
{
// add every other appointment, populate with sample data
if ((i % 2) == 0)
{
int appointmentNumber = i + 1;
MyAppointment myAppointment =
new MyAppointment(
DateTime.Now.AddHours(appointmentNumber),
DateTime.Now.AddHours(appointmentNumber + 2),
"Appointment " + appointmentNumber.ToString(),
"Description for Appointment " + appointmentNumber.ToString(),
"Conference room " + appointmentNumber.ToString());
appointments.Add(myAppointment);
}
}
// create and configure a scheduler binding source
SchedulerBindingDataSource dataSource = new SchedulerBindingDataSource();
// map the MyAppointment properties to the scheduler
AppointmentMappingInfo appointmentMappingInfo = new AppointmentMappingInfo();
appointmentMappingInfo.Start = "Start";
appointmentMappingInfo.End = "End";
appointmentMappingInfo.Summary = "Subject";
RadControls for Winforms
435
RadControls for Winforms
C# PDF Page Insert Library: insert pages into PDF file in C#.net
page processing functions, such as how to merge PDF document files by C# code, how to rotate PDF document page, how to delete PDF page using C#
delete pages from a pdf in preview; acrobat export pages from pdf
C# PDF File Split Library: Split, seperate PDF into multiple files
Besides, in the process of splitting PDF document, developers can also remove certain PDF page from target PDF file using C#.NET PDF page deletion API.
add and remove pages from a pdf; cut pages out of pdf online
When the application is run, a series of MyAppointment objects show up in the scheduler.
Recurring Appointments
Create specialized RecurrenceRule descendents to implement recurrence for specific intervals:
MinutelyRecurrenceRule 
HourlyRecurrenceRule 
DailyRecurrenceRule 
WeeklyRecurrenceRule 
MonthlyRecurrenceRule 
YearlyRecurrenceRule 
One of several constructor overloads lets you set the start time, duration and number of occurences. Then the 
rule can be assigned to the appointments RecurrenceRule property. The snippet below defines a rule 
that starts "now" and recurs every two hours and stops after the tenth occurence. 
The Appointment Occurrences property lets you iterate a list of IEvent instances. To get only some 
occurrences between specific starting and stopping times, use the Appointment GetOccurrences() method.
appointmentMappingInfo.Description = "Description";
appointmentMappingInfo.Location = "Location";
appointmentMappingInfo.UniqueId = "Id";
dataSource.EventProvider.Mapping = appointmentMappingInfo;
// assign the generic List of MyAppointment as the EventProvider data source
dataSource.EventProvider.DataSource = appointments;
this.radScheduler1.DataSource = dataSource;
}
[VB] Adding a RecurrenceRule
radScheduler1.Appointments(0).RecurrenceRule = New HourlyRecurrenceRule
(DateTime.Now, 2, 10) 
[C#] Adding a RecurrenceRule
radScheduler1.Appointments[0].RecurrenceRule =
new HourlyRecurrenceRule(DateTime.Now, 2, 10);
[VB] Iterating Occurrences
RadControls for Winforms
436
RadControls for Winforms
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
Since images are usually or large size, images size reducing can help to reduce PDF file size effectively. Delete unimportant contents Embedded page thumbnails.
add remove pages from pdf; delete pdf page acrobat
VB.NET PDF Page Insert Library: insert pages into PDF file in vb.
using RasterEdge.XDoc.PDF; Add and Insert a Page to PDF File Using VB. doc2.Save( outPutFilePath). Add and Insert Blank Page to PDF File Using VB.
delete page from pdf document; copy page from pdf
When the user changes a specific occurrence and not the entire series, an "Exception" is created. "Exceptions" 
in this context refer to "Exceptions to a rule", not the .NET Exception class related to error handling. You can 
create exceptions programmatically by adding to the IEvent MasterEvent.Exceptions collection. The snippet 
below changes the background and status of an IEvent instance and adds the IEvent to its own MasterEvent 
Exceptions collection.
 Recurrence Rule Walkthrough
This example will create a single appointment, then define a recurrence rule that occurs every two hours for 
ten occurrences. In the example you will change the background and status for a subset of appointments that 
occur after 10AM.
' iterate all appointment occurrances
'...
For Each ev As IEvent In recurringAppointment.Occurrences
Next
' iterate only occurrances after 10am
Dim occurrencesAfter10AM As IEnumerable(Of IEvent) = 
recurringAppointment.GetOccurrences(New DateTime(2008, 10, 1, 10, 0, 0), 
DateTime.Now)
'...
For Each ev As IEvent In occurrencesAfter10AM
Next
[C#] Iterating Occurrences
// iterate all appointment occurrances
foreach (IEvent ev in recurringAppointment.Occurrences)
{
//...
}
// iterate only occurrances after 10am
IEnumerable<IEvent> occurrencesAfter10AM = recurringAppointment.GetOccurrences(
new DateTime(2008, 10, 1, 10, 0, 0), DateTime.Now);
foreach (IEvent ev in occurrencesAfter10AM)
{
//...
}
[VB] Adding Rule Exceptions
myEvent.BackgroundId = DirectCast(AppointmentBackground.Important, Integer)
myEvent.StatusId = DirectCast(AppointmentStatus.Tentative, Integer)
myEvent.MasterEvent.Exceptions.Add(myEvent) 
[C#] Adding Rule Exceptions
myEvent.BackgroundId = (int)AppointmentBackground.Important;
myEvent.StatusId = (int)AppointmentStatus.Tentative;
myEvent.MasterEvent.Exceptions.Add(myEvent);
You can find the complete source for this project at:
\VS Projects\Scheduler\<VB|CS>\Recurring
RadControls for Winforms
437
RadControls for Winforms
C# PDF File Compress Library: Compress reduce PDF size in C#.net
Since images are usually or large size, images size reducing can help to reduce PDF file size effectively. Delete unimportant contents Embedded page thumbnails.
delete page on pdf document; delete pages from pdf online
C# PDF File Merge Library: Merge, append PDF files in C#.net, ASP.
document file, and choose to create a new PDF file in .NET NET document imaging toolkit, also offers other advanced PDF document page processing and
delete pages out of a pdf file; delete pages from a pdf online
1. In a new application, add a RadScheduler and two RadListBoxes to the form. Place the RadScheduler on the 
left half of the form and the two RadListBoxes on the right half of the form, one above the other. Name 
the first list box "lbAll" and the second "lbAfter10". 
2. Add the code below to the form's Load Event handler:
[VB] Adding and Traversing Appointment Recurrences
Private Sub RadForm1_Load(sender As Object, e As EventArgs)
Dim startDate As New DateTime(2008, 10, 1, 3, 30, 0)
' Create a sample appointment that starts at 10/1/2008 3:30 AM and lasts half an 
hour.
Dim recurringAppointment As New Appointment(startDate, TimeSpan.FromHours(1), 
"Appointment Subject")
' Create a recurrence rule to repeat the appointment every 2 hours for 10 
occurrences.
Dim rrule As New HourlyRecurrenceRule(recurringAppointment.Start, 2, 10)
'Assign the hourly recurrence rule to the appointment
recurringAppointment.RecurrenceRule = rrule
radScheduler1.Appointments.Add(recurringAppointment)
' iterate all appointment occurrances
For Each ev As IEvent In recurringAppointment.Occurrences
lbAll.Items.Add(New RadListBoxItem(ev.Start.ToShortTimeString() + " - " + ev.
[End].ToShortTimeString()))
Next
' iterate only occurrances after 10am
Dim occurrencesAfter10AM As IEnumerable(Of IEvent) = 
recurringAppointment.GetOccurrences(New DateTime(2008, 10, 1, 10, 0, 0), 
DateTime.Now)
For Each ev As IEvent In occurrencesAfter10AM
RadControls for Winforms
438
RadControls for Winforms
3. Run the application. Notice that the background and status for appointments after 10am are changed to 
reflect changes made to members of the collection returned by GetOccurrences().
Drag And Drop
Dragging appointment subjects from a RadListBox uses similar techniques as explained in the list boxes 
chapter. Here we'll talk about the portion that differs, i.e. when the item is dropped we will need to find 
the scheduler cell. Once you have the scheduler cell you can get the date and create an appointment for it. In 
this example we also make the appointment recur for three days.
lbAfter10.Items.Add(New RadListBoxItem(ev.Start.ToShortTimeString() + " - " + ev.
[End].ToShortTimeString()))
' set the background id to "Important" and make this occurence an "Exception"
ev.BackgroundId = DirectCast(AppointmentBackground.Important, Integer)
ev.StatusId = DirectCast(AppointmentStatus.Tentative, Integer)
ev.MasterEvent.Exceptions.Add(ev)
Next
radScheduler1.FocusedDate = startDate
End Sub
[C#] Adding and Traversing Appointment Recurrences
private void RadForm1_Load(object sender, EventArgs e)
{
DateTime startDate = new DateTime(2008, 10, 1, 3, 30, 0);
// Create a sample appointment that starts at 10/1/2008 3:30 AM and lasts half an 
hour.
Appointment recurringAppointment = new Appointment(startDate,
TimeSpan.FromHours(1.0), "Appointment Subject");
// Create a recurrence rule to repeat the appointment every 2 hours for 10 
occurrences.      
HourlyRecurrenceRule rrule =
new HourlyRecurrenceRule(recurringAppointment.Start, 2, 10);
//Assign the hourly recurrence rule to the appointment
recurringAppointment.RecurrenceRule = rrule;
radScheduler1.Appointments.Add(recurringAppointment);
// iterate all appointment occurrances
foreach (IEvent ev in recurringAppointment.Occurrences)
{
lbAll.Items.Add(
new RadListBoxItem(ev.Start.ToShortTimeString() + " - " +
ev.End.ToShortTimeString()));
}
// iterate only occurrances after 10am
IEnumerable<IEvent> occurrencesAfter10AM = recurringAppointment.GetOccurrences(
new DateTime(2008, 10, 1, 10, 0, 0), DateTime.Now);
foreach (IEvent ev in occurrencesAfter10AM)
{
lbAfter10.Items.Add(
new RadListBoxItem(ev.Start.ToShortTimeString() + " - " +
ev.End.ToShortTimeString()));
// set the background id to "Important" and make this occurence an "Exception"
ev.BackgroundId = (int)AppointmentBackground.Important;
ev.StatusId = (int)AppointmentStatus.Tentative;
ev.MasterEvent.Exceptions.Add(ev);
}
radScheduler1.FocusedDate = startDate;
}
RadControls for Winforms
439
RadControls for Winforms
The first part that differs is the RadScheduler DragDrop event handler. Here you need to get the location of the 
mouse and convert it to a point that the scheduler can use to get the cell element underneath the mouse. This 
MonthCellElement is passed to a private method GetCellAppointment() that we will write next.
You can find the complete source for this project at:
\VS Projects\Scheduler\<VB|CS>\DragAndDrop
[VB] Drop to the Month Cell Element
Private Sub radScheduler1_DragDrop(sender As Object, e As DragEventArgs)
Dim scheduler As RadScheduler = TryCast(sender, RadScheduler)
' get mouse location on the screen
Dim mouseLocation As New Point(e.X, e.Y)
' convert to location on the sceduler
Dim schedulerLocation As Point = scheduler.SchedulerElement.PointFromScreen
(mouseLocation)
' get the cell element for the location
Dim element As RadElement = scheduler.ElementTree.GetElementAtPoint
(schedulerLocation)
' cast cell element to MonthCellElement and create an appointment for cell date
If (element <> NothingAndAlso (TypeOf element Is MonthCellElement) Then
Dim monthCellElement As MonthCellElement = TryCast(element, MonthCellElement)
Dim appointment As Appointment = GetCellAppointment(monthCellElement)
scheduler.Appointments.Add(appointment)
End If
' finished drop, clear temporary variables
_dragRectangle = Rectangle.Empty
_currentItem = Nothing
RadControls for Winforms
440
RadControls for Winforms
The helper method GetCellAppointment() takes a MonthCellElement and creates an appointment using the 
MonthCellElement Date. The appointment gets its Summary property content from the dragged RadListBox 
item. The method also assigns a DailyRecurrenceRule that runs for three, eight hour days.
End Sub
[C#] Drop to the Month Cell Element
private void radScheduler1_DragDrop(object sender, DragEventArgs e)
{
RadScheduler scheduler = sender as RadScheduler;
// get mouse location on the screen
Point mouseLocation = new Point(e.X, e.Y);
// convert to location on the sceduler
Point schedulerLocation = scheduler.SchedulerElement.PointFromScreen
(mouseLocation);
// get the cell element for the location
RadElement element = scheduler.ElementTree.GetElementAtPoint(schedulerLocation);
// cast cell element to MonthCellElement and create an appointment for cell date
if ((element != null) && (element is MonthCellElement))
{
MonthCellElement monthCellElement = element as MonthCellElement;
Appointment appointment = GetCellAppointment(monthCellElement);
scheduler.Appointments.Add(appointment);
}
// finished drop, clear temporary variables
_dragRectangle = Rectangle.Empty;
_currentItem = null;
}
[VB] Creating an Appointment for the MonthCellElement
Private Function GetCellAppointment(ByVal monthCellElement As MonthCellElement) As
Appointment
Dim appointment As New Appointment()
' start at 9:00AM on the drop target cell date
appointment.Start = monthCellElement.Date.AddHours(9)
' class is 8 hours long
appointment.Duration = TimeSpan.FromHours(8)
' copy the listbox item itext as the summary
appointment.Summary = _currentItem.Text
' fill other misc properties
appointment.Location = "Telerik Training Center"
appointment.Background = AppointmentBackground.Important
appointment.Status = AppointmentStatus.Busy
' the class will run for three, eight hour days
appointment.RecurrenceRule = New DailyRecurrenceRule(appointment.Start, 1, 3)
Return appointment
End Function
[C#] Creating an Appointment for the MonthCellElement
private Appointment GetCellAppointment(MonthCellElement monthCellElement)
{
Appointment appointment = new Appointment();
// start at 9:00AM on the drop target cell date
appointment.Start = monthCellElement.Date.AddHours(9);
// class is 8 hours long
appointment.Duration = TimeSpan.FromHours(8);
// copy the listbox item itext as the summary
appointment.Summary = _currentItem.Text;
RadControls for Winforms
441
RadControls for Winforms
This chapter explored RadScheduler capabilities: how to bind data to the scheduler, add, remove and iterate 
appointments, work with resources, modify the view (i.e. week, day, month) and manipulate appointment 
status. The chapter also demonstrated how to drag and drop appointments into the scheduler.
 
// fill other misc properties
appointment.Location = "Telerik Training Center";
appointment.Background = AppointmentBackground.Important;
appointment.Status = AppointmentStatus.Busy;
// the class will run for three, eight hour days
appointment.RecurrenceRule = new DailyRecurrenceRule(appointment.Start, 1, 3);
return appointment;
}
17.6 Summary
 
 
RadControls for Winforms
442
RadControls for Winforms
Documents you may be interested
Documents you may be interested