itextsharp pdf c# : Export bookmarks from pdf to excel control application platform web page html wpf web browser Build%20Your%20Own%20Web%20Site%20The%20Right%20Way%20Using%20HTML%20&%20CSS%203rd%20Ed32-part790

Figure 7.28. The Freedback interface for creating a form
The service automatically sets up a name and email address field, marking them
both as “required.” Then simply add other fields (for example, telephone number,
date of event, and so on), as shown in Figure 7.29. If you make a mistake, you can
reorder, delete, and amend any fields later. Work your way through, making sure
to add all the fields required in our form.
Build Your Own Website The Right Way Using HTML & CSS
284
Export bookmarks from pdf to excel - add, remove, update PDF bookmarks in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Empower Your C# Project with Rapid PDF Internal Navigation Via Bookmark and Outline
convert word pdf bookmarks; auto bookmark pdf
Export bookmarks from pdf to excel - VB.NET PDF bookmark library: add, remove, update PDF bookmarks in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Empower Your VB.NET Project with Rapid PDF Internal Navigation Via Bookmark and Outline
create bookmarks in pdf; pdf bookmark editor
Figure 7.29. It’s easy to add a form field using Freedback
After adding the form fields, there will be further options to complete. Choose the
option to show Freedback’s Thank you page. Alternatively, you can send the user
to your own customized “Thank you” page, which can be done at a later stage if
you prefer. You will also need to select the option to
Email a copy of each form sub-
mission to you
,as shown in Figure 7.30—otherwise there’s little point to this service!
Figure 7.30. Directing the form your way
285
Forms: Interacting with Your Audience
VB.NET PDF File Compress Library: Compress reduce PDF size in vb.
document file. Remove bookmarks, annotations, watermark, page labels and article threads from PDF while compressing. Also a preview
how to add bookmarks on pdf; adding bookmarks to a pdf
VB.NET PDF File Split Library: Split, seperate PDF into multiple
Demo Code in VB.NET. The following VB.NET codes explain how to split a PDF file into multiple ones by PDF bookmarks or outlines.
create bookmarks pdf; how to bookmark a page in pdf document
Once you’ve worked your way through all the fields, Freedback will present the
markup that it thinks you’ll need for your form, shown in Figure 7.31. I say thinks,
because we’ll have to adapt it a little to suit our needs—making sure it meets our
high markup standards!
The X, Y, and Z of Form Fields
Another point to note—and I can’t emphasize this enough, otherwise you’ll be
scratching your head when it fails to work—is that in all my examples below, the
values for the acctid and formid fields have been set to XXXXXXXXXXX,
YYYYYYY, ZZZZZZZZZZZZ, and so on. What do these mean? Actually, they
mean nothing! They’re just there to draw attention to the fact that, once you’ve
set up your own account with Freedback, you’ll need to ensure that you use the
values provided for you by Freedback—these are just examples in this book. In
previous editions of this book, the values I used were from my own form that I
set up, and I would often have feedback forms sent directly to me. Meanwhile,
thebuddingweb developer outthereis checkingthe markup inthebook, thinking,
“I know this is right! I’ve entered it exactly as stated. Why is my form data not
being sent to me?!” And the reason, of course, is that Freedback was tying the
account and form identification up to my personal account and mailing it to me.
So please, be sure to check the values over.
Figure 7.31. The form HTML that Freedback provides
Build Your Own Website The Right Way Using HTML & CSS
286
C# PDF File Split Library: Split, seperate PDF into multiple files
Split PDF file by top level bookmarks. The following C# codes explain how to split a PDF file into multiple ones by PDF bookmarks or outlines.
adding bookmarks to pdf document; add bookmark to pdf reader
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
copy pdf bookmarks; create pdf bookmark
In the figure, you’ll notice that below the HTML that you should copy is a warning
not to edit it. Guess what? We’re going to ignore that warning! There are a few
reasons why: it has produced the markup in a
table
layout (bad), it’s missing
label
elements (also bad), and it commits the most heinous crime of using
<font>
tags!
Rather than attempting to kick the Freedback markup into shape, we’ll simply take
what we need from it and apply it to the form that we built earlier in this chapter.
Inserting the Form Code
Freedback provides the following complete markup (note that I’ve removed some
spacing and indents to save space here). We’ll have to pluck out the parts that we’ll
copy and then paste into our own form. The parts you need are marked in bold:
Freedback-generated markup (excerpt)
<!-- Begin Freedback Form -->
<!-- DO NOT EDIT YOUR FORM HERE, PLEASE LOG IN AND
EDIT AT FREEDBACK.COM -->
<form enctype="multipart/form-data" method="post"
action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
<div>
<input type="hidden" name="acctid" id="acctid" 
value="XXXXXXXXXXXX"/>
<input type="hidden" name="formid" id="formid" value="YYYYYYY"/>
<input type="hidden" name="required_vars" id="required_vars" 
value="name,email,field-ZZZZZZZZZZZZZ"/>
</div>
<table cellspacing="5" cellpadding="5" border="0">
<tr>
<td valign="top">
<strong>Contact Name</strong>
</td>
<td valign="top">
<input type="text" name="name" id="name" size="40" value=""/>
</td>
</tr>
<tr>
<td valign="top">
<strong>Telephone Number</strong>
</td>
<td valign="top">
<input type="text" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" size="40" value=""/>
287
Forms: Interacting with Your Audience
C# PDF Convert to HTML SDK: Convert PDF to html files in C#.net
Export PDF images to HTML images. SDK, preserves all the original anchors, links, bookmarks and font style that are included in target PDF document file.
how to bookmark a pdf file; bookmark pdf documents
How to C#: Basic SDK Concept of XDoc.PDF for .NET
C# programmers can convert Word, Excel, PowerPoint Tiff, Jpeg, Bmp, Png, and Gif to PDF document. This class describes bookmarks in a PDF document.
pdf bookmarks; bookmarks pdf files
</td>
</tr>
<tr>
<td valign="top">
<strong>Email Address</strong>
</td>
<td valign="top">
<input type="text" name="email" id="email" size="40" value=""/>
</td>
</tr>
<tr>
<td valign="top">
<strong>What&#39;s the event called?</strong>
</td>
<td valign="top">
<input type="text" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" size="40" value=""/>
</td>
</tr>
<tr>
<td valign="top">
<strong>When&#39;s the event happening?</strong>
</td>
<td valign="top">
<input type="text" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" size="40" value=""/>
</td>
</tr>
<tr>
<td valign="top">
<strong>What region is the event in?</strong>
</td>
<td valign="top">
<select name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ">
<option value="South-west">South-west</option>
<option value="South-east">South-east</option>
<option value="Midlands">Midlands</option>
<option value="Central">Central</option>
<option value="London">London</option>
<option value="East">East</option>
<option value="North">North</option>
<option value="Scotland">Scotland</option>
<option value="Northern Ireland">Northern Ireland</option>
<option value="International (see details below)">International 
Build Your Own Website The Right Way Using HTML & CSS
288
C# Create PDF Library SDK to convert PDF from other file formats
create searchable PDF document from Microsoft Office Word, Excel and PowerPoint. Create and save editable PDF with a blank page, bookmarks, links, signatures
create bookmarks pdf file; creating bookmarks in pdf documents
VB.NET PDF: Basic SDK Concept of XDoc.PDF
VB.NET programmers can convert Word, Excel, PowerPoint Tiff, Jpeg, Bmp, Png, and Gif to PDF document. This class describes bookmarks in a PDF document.
create bookmarks pdf files; how to create bookmark in pdf with
(see details below)</option>
</select>
</td>
</tr>
<tr>
<td valign="top">
<strong>More details (as much as you think
we&#39;ll need)</strong>
</td>
<td valign="top">
<textarea name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" rows="6" cols="40"></textarea>
</td>
</tr>
<tr>
<td valign="top">
<strong>If we need to call you back for any more info,
what would be the best time to call you on the number supplied?
</strong>
</td>
<td valign="top">
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="In the morning"/> 
In the morning<br/>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="In the afternoon"/> 
In the afternoon<br/>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="In the evening"/> 
In the evening<br/>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="No calls please"/> 
No calls please<br/>
</td>
</tr>
<tr>
<td valign="top">
<strong>Bubble Under may share information you give us here 
with other like-minded people or websites to promote the event. 
Please confirm if you are happy for us to do this.</strong>
</td>
<td valign="top">
<input type="checkbox" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="I am happy for this event to 
be publicised outside of and beyond BubbleUnder.com where 
289
Forms: Interacting with Your Audience
possible"/> I am happy for this event to be publicised outside
of and beyond BubbleUnder.com where possible<br/>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value=" Submit Form "/>
</td>
</tr>
</table>
</form>
<br><center><font face="Arial, Helvetica" size="1"><b>
<a href="http://www.freedback.com">create web form</a>
</b></font></center>
<!-- End Freedback Form -->
Well, let’s get cracking! Open
contact.html
in your text editor.
First take Freedback’s opening
form
tag and paste it over the opening
<form>
tag in
contact.html
.Take all the
hidden
inputs just after Freedback’s opening
<form>
tag
and paste them inside a
div
element, just after the opening
form
tag in
contact.html
.
It should look similar to the following markup (although the
acctid
,
formid
,and
required_vars
values will be the unique values that Freedback has assigned for
your form. So avoid copying the values below):
contact.html
(excerpt)
<form enctype="multipart/form-data" method="post"
action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
<div>
<input type="hidden" name="acctid"
id="acctid" value="XXXXXXXXXXXX"/>
<input type="hidden" name="formid" id="formid" value="YYYYYYY"/>
<input type="hidden" name="required_vars" id="required_vars"
value="name,email,field-ZZZZZZZZZZZZZ"/>
</div>
<fieldset>
Now go through each of the form fields—telephone number, best time to call, and
so on—taking the parts of the markup to which I previously drew your attention.
Copy each of these piecesof information and paste them over the equivalent section
Build Your Own Website The Right Way Using HTML & CSS
290
on the contact form. There’s no need to concern yourself with the text that appears
next to each form control; just copy and paste the respective
input
,
select
,and
textarea
elements. Once you’ve completed all the steps, your contact form should
look something like this (again, I say something because the
id
attributes’ values
will be the unique values for your account and form):
contact.html
(excerpt)
<form enctype="multipart/form-data" method="post"
action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
<div>
<input type="hidden" name="acctid"id="acctid" 
value="XXXXXXXXXXXX"/>
<input type="hidden" name="formid" id="formid" value="YYYYYYY"/>
<input type="hidden" name="required_vars"
id="required_vars" value="name,email,field-ZZZZZZZZZZZZZ"/>
</div>
<fieldset>
<legend>Tell us About a Dive Event</legend>
<div>
<label for="contactname" class="fixedwidth">Contact Name</label>
<input type="text" name="name" id="name" size="40" value=""/>
</div>
<div>
<label for="telephone" class="fixedwidth">Telephone Number</label>
<input type="text" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" size="40" value=""/>
</div>
<div>
<label for="email" class="fixedwidth">Email Address</label>
<input type="text" name="email" id="email" size="40" value=""/>
</div>
<div>
<label for="eventname" class="fixedwidth">What's the
event called?</label>
<input type="text" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" size="40" value=""/>
</div>
<div>
<label for="eventdate" class="fixedwidth">When's the event
happening?</label>
<input type="text" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" size="40" value=""/>
</div>
291
Forms: Interacting with Your Audience
<div>
<label for="region" class="fixedwidth">What region is
the event in?</label>
<select name="field-ZZZZZZZZZZZZZ" id="field-ZZZZZZZZZZZZZ">
<option value="South-west">South-west</option>
<option value="South-east">South-east</option>
<option value="Midlands">Midlands</option>
<option value="Central">Central</option>
<option value="London">London</option>
<option value="East">East</option>
<option value="North">North</option>
<option value="Scotland">Scotland</option>
<option value="Northern Ireland">Northern Ireland</option>
<option value="International (see details below)">International 
(see details below)</option>
</select>
</div>
<div>
<p>Please provide any other details you think will be useful to us
in the text area below (it may save us calling or emailing you,
and help avoid delays).</p>
<label for="details" class="fixedwidth">
More details (as much as you think we'll need!)</label>
<textarea name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" rows="6" cols="40"></textarea>
</div>
<div>
<p>If we need to call you back for any more info, what would be 
the best time to call you on the number supplied?</p>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="In the morning"/>
<label for="morning">In the morning</label>
<br/>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="In the afternoon"/>
<label for="afternoon">In the afternoon</label>
<br/>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="In the evening"/>
<label for="evening">In the evening</label>
<br/>
<input type="radio" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="No calls please"/>
<label for="never">No calls please</label>
</div>
Build Your Own Website The Right Way Using HTML & CSS
292
<div>
<p>Bubble Under may share information you give us here with 
other like-minded people or websites to promote the event. 
Please confirm if you are happy for us to do this.</p>
<input type="checkbox" name="field-ZZZZZZZZZZZZZ"
id="field-ZZZZZZZZZZZZZ" value="I am happy for this
event to be publicised outside of and beyond
BubbleUnder.com where possible"/> 
<label for="publicize">I am happy for this event to be
publicized outside of and
beyond BubbleUnder.com, where possible</label>
</div>
<div class="buttonarea">
<input type="submit" value="Send Us the Info"/>
</div>
</fieldset>
</form>
We’re almost done, but if you’re looking at the markup above and thinking, “There’s
something wrong with that,” then give yourself a well-deserved pat on the back!
What’s the problem with the previous block of markup? Earlier in the chapter, I
pointed out that each form control needs to have an associated
label
element. The
label
element islinked to the related form control with a
for
attribute that matches
the form control’s
id
attribute. By originating the form on Freedback.com, some
unique
id
attributes have been created to manage the form handling, and these are
completely different from those we set earlier. There’s no working around this, so
we’ll have to accommodate these values by amending the
for
attribute for each
control. In the markup below, I’ve highlighted the parts that have changed (again,
the values will be unique to you, not exactly as shown below):
contact.html
(excerpt)
<form enctype="multipart/form-data" method="post"
action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
<div>
<input type="hidden" name="acctid"
id="acctid" value="XXXXXXXXXXXX"/>
<input type="hidden" name="formid"
id="formid" value="YYYYYYY"/>
<input type="hidden" name="required_vars"
id="required_vars" value="name,email,field-ZZZZZZZZZZZZZ"/>
</div>
293
Forms: Interacting with Your Audience
Documents you may be interested
Documents you may be interested