how to show pdf file in asp.net page c# : How to select text in pdf and copy Library SDK class asp.net .net windows ajax Nitro_Pro_8_User_Guide_EN15-part237

136
©Nitro
OCGobject
ThisobjectprovidessupportforOptionalContentGroups.OCGsholdacollectionofgraphicalobjects,
andareknownaslayers.Youcandynamicallyswitchpropertiesoflayerstomakethemvisibleorinvisible
toprovidenavigationinaPDF document.
Formoreinformation,seeThe
Layers
Pane
.
Properties&Methods
TheOCGobjectsupportsallpropertiesandmethodsincludedintheAcrobatJavaScriptspecification.
Example:
TurnsanOCGnamed‘Overlay’on(toturnitoff,justchangetruetofalseinJavaScriptcode).
function turnOverlayOCG(doc)
{
var ocgArray = doc.getOCGs();
for(var i=0; i<ocgArray.length){
if(ocgArray[i].name == “Overlay”){
ocgArray[i].state = true;
}
}
}
Properties
state
initState
locked
name
Methods
getIntent
getAction
setIntent
NitroPro8-UserGuide
How to select text in pdf and copy - search text inside PDF file in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Learn how to search text in PDF document and obtain text content and location information
how to select text on pdf; search multiple pdf files for text
How to select text in pdf and copy - VB.NET PDF Text Search Library: search text inside PDF file in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Learn How to Search Text in PDF Document and Obtain Text Content and Location Information in VB.NET application
pdf editor with search and replace text; cannot select text in pdf file
137
©Nitro
Edit
WiththerightPDFeditingtools,youcanminimizetheamountoftimeyouspendswitchingbetween
differentprogramsandfiletypes.NitroPro8includesanextensivesetoftoolstoeditthetext,graphics,
andpagesinyourexistingPDFs,aswellasprepareandpolishthemfordistribution.
Text
l
Add
or
edit
text
l
Embedded
fonts
l
Headers
and
footers
l
Bates
Numbers
Images
l
Insert
an
image
l
Delete
an
image
l
Arrange
images
l
Resize
and
crop
images
l
Change
image
color
space
l
Replace
images
l
Extract
an
image
l
Extract
all
images
l
Watermarks
and
backgrounds
Files
l
Document
information
and
metadata
l
Document
security
l
Fonts
l
Initial
View
properties
l
Optimize
a
PDF
file
l
Attach
a
file
Relatedinformation
l
Annotation
layer
and
content
layer
l
Combine
files
and
assemble
pages
NitroPro8-UserGuide
C# PDF Image Extract Library: Select, copy, paste PDF images in C#
C#: Select All Images from One PDF Page. C# programming sample for extracting all images from a specific PDF page. C#: Select An Image from PDF Page by Position.
how to select all text in pdf file; how to make a pdf file text searchable
VB.NET PDF Image Extract Library: Select, copy, paste PDF images
VB.NET : Select An Image from PDF Page by Position. Sample for extracting an image from a specific position on PDF in VB.NET program.
select text in pdf reader; how to search a pdf document for text
138
©Nitro
Addoredittext
NitroPro8includestoolssoyoucanaddnewtexttoaPDF document,ormakelast-minutecorrections
andupdates,withouttheneedtore-openthesourcefilesintheauthoringprogram.
TheTypeTexttoolletsyouaddtextanywhereonaPDFdocument,evenifitdoesnothaveinteractive
fields.Itgivesyoufullcontroloverthetextcolor,fonttype,andtextsize.Forexample,ifyouobtainaPDF
formcreatedfromaphotocopyorscanofapaperform,youdonotneedtoprinttheformandthenwrite
informationonthepaper.Instead,youcanusetheTypeTexttooltoentertextasanannotationonthe
form.
YoucanusetheEdittooltoupdateandmoveexistingblocksoftextasaparagraphinsideabounding-
box,anddonothavetomanageparagraphsasacollectionofseparatelines.Asyouedittextorresizethe
bounding-boxwhileediting,textre-flowsnaturallyontoadjacentlines.
TIP: Textre-flowissupportedinparagraphs,andtreatsthemasseparateobjects. Tomoveapar-
agraph,usetheEdittool.
NitroPro8includestoolssoyoucanaddtexttoeachpageinyourdocumentintheformofheadersand
footers,andBatesnumbersforuniquepagenumbering.
Formoreinformation,see:
l
Headers
and
footers
l
Bates
Numbers
NOTE: Ifyouplantomakemanysmallorseveralmajortextcorrectionstoadocument,werecommend
yougobacktothesourcefileandmakethechangesthere.Thisgivesmoreprecisecontroloverthe
exactlayoutandlook,andtheremaybeanopportunitytoautomatethecorrectionstosavetime.
Alternatively,Convert
PDF
to
Microsoft
Word
orConvert
PDF
to
Rich
Text
tocreateaneditableDOCor
RTFfile.
Toaddtext:
1. OntheHometab,intheToolsgroup,clickTypeText
2. Totypetext,clickthepagewhereyouwanttoinserttext
3. OntheFormattab,usethetextoptionstosettheappearanceofthetext,suchasthefontand
size
4. Enteryourtext,andpressEscapeorclickFinishwhencomplete
TIP: Whenyoutypetext,itisinsertedontheannotationlayerbydefault.Toinserttextonthecontent
layer,Ctrl-clickthepagewhereyouwanttoinserttext.Formoreinformation,seeAnnotation
layer
and
content
layer
.
NitroPro8-UserGuide
VB.NET PDF Page Extract Library: copy, paste, cut PDF pages in vb.
Dim page As PDFPage = doc.GetPage(3) ' Select image by the point VB.NET: Clone a PDF Page. Dim doc As PDFDocument = New PDFDocument(filepath) ' Copy the first
search text in pdf using java; find text in pdf files
C# PDF Text Redact Library: select, redact text content from PDF
Page: Replace PDF Pages. Page: Move Page Position. Page: Extract, Copy and Paste PDF Pages. Page: Rotate a PDF Page. PDF Read. Text: Extract Text from PDF. Text
convert a scanned pdf to searchable text; pdf find text
139
©Nitro
TypeTextSmartAlignment
Whenenabled,SmartAlignmentprovidesvisualmarkersthatmakeiteasytoalignnewtexttoother
phrases,annotations,orimagesonthepagebeforeyoubegintyping.WiththeTypeTexttoolselected,
thecursorwillsnaptothehorizontalorverticalguidesdependingonwhereyoupositionyourmouse.
Toenable/disableSmartAlignment:
1. OntheHometab,clickTypeText
2. Clickonthedocumentpagetostarttyping,theFormattabwillappear
3. IntheAlignmentgroup,checkSmartAlignmenttoenablealignment
4. UncheckSmartAlignmenttodisablealignment
Toedittext:
1. OntheEdittab,intheText/Imagesgroup,clickEdit
2. Double-clicktext,andpositionthecursorwhereyouwanttoinsertoredittext.Asyoutype,the
bounding-boxresizesitselftofittext
3. Whenyouhavefinishededitingthetext,pressEscape,clickelsewhereonthepage,orclickFinish
NOTE: Ifyouenteracharacterwithafontthatnotinstalled,NitroPro8 automaticallytriestoselecta
fontwithasimilarappearance.Youmaynoticethefontnamechangewhileyouedittext.
IfNitroPro8cannotdeterminearelatedfont,itusesagenericfont.Weadviseyoutoconfirmthat
selectedfontsaresimilarinappearance,andapplyanotherfontifnecessary.
Formoreinformation,seeEmbedded
fonts
.
Movetext
Tomovetext,clicktheEdittoolonaparagraphorheadingtoselectit,anddooneofthefollowing:
l
Dragthebounding-boxtoanewlocation
l
Usethearrowkeysonyourkeyboardtonudgethebounding-boxinsmallincrements
Todeleteaparagraphorimage:
1. Clickonitoncetoshowthelightbluebounding-boxforthetextorimage.
2. PressDelete,orright-clickonthetextandselectDeletefromthemenu.
Flattentext
Movingtextfromtheannotationlayertothecontentlayerisknownasflatteningtext.
Toflattentext,dooneofthefollowing:
l
Totransferaselectedtextannotationtothecontentlayer,right-clickonthetextannotation,and
selectFlattenSelectionfromthemenu
l
Totransferalltextfromtheannotationlayertothecontentlayer,right-clickonatextannotation,
andselectFlattenAll fromthemenu
l
Toflattenallannotationsfromtheannotationlatertothecontentlayer,andsavethePDFfilein
onestep,inFilemenu,selectSaveAs,andthenFlattenedPDF.Thisflattensallannotations,
includingformfields,stickynotes,links,andothermarkupannotations.
Formoreinformation,seeAnnotation
layer
and
content
layer
.
NitroPro8-UserGuide
C# PDF Page Extract Library: copy, paste, cut PDF pages in C#.net
Program.RootPath + "\\" 1.pdf"; PDFDocument doc = new PDFDocument(inputFilePath); // Select pages Description: Copy specified page from the input PDF file
how to make pdf text searchable; select text in pdf
VB.NET PDF- View PDF Online with VB.NET HTML5 PDF Viewer
PDF to text, C#.NET convert PDF to images, C#.NET PDF file & pages edit, C#.NET PDF pages extract, copy, paste, C# Select text and image on PDF document. 2.
searching pdf files for text; convert pdf to word searchable text
140
©Nitro
Headersandfooters
TheHeader& Footertoolletsyouinserttext,images,andotherPDFfilesintooneormorepagesina
PDF document.Youhavefullcontrolovertheposition,size,opacity,andotherpropertiesofyourheaders
andfooters,andyoucansavethemforreuse.Youcanalsoimportandexportheaderandfooterprofiles
tosharethemwithotherpeople.Headerandfooterprofilescontainoneormoreheadersandfooters.
Commonusesofheadersandfootersinclude:
l
Dynamictext:Automaticallyinsertdynamicinformationlikepagenumbers,author,document
title,dateandtime
l
Headers:Insertdocumenttitle,chaptersanddateinformation
l
Footers:Insertpagenumbering,date,andtimeinformation
Tolistallmanagedheadersandfooters:
1. IntheEdittab,inthePageMarksgroup,clickHeader&Footer.TheManageHeaders& Footers
dialogappears
2. SeetheSelectprofilesectionforalistofheaderandfooterprofiles.Profilescancontainmorethan
oneheaderandfooter.
3. Toseeallheadersandfootersinaprofile,clickthe+buttonbesidetheprofile
TomanageprofilesandconfiguretheApplytodocumentmenu:
1. IntheEdittab,inthePageMarksgroup,clickHeader& Footer.TheManageHeaders& Footers
dialogappears
2. SeetheSelectprofilesectionforalistofheaderandfooterprofiles.Doanyofthefollowing:
Torenameaprofile,double-clickonit,andenteranewname
Tocreateanewprofile,clickNewProfile.AnewprofileappearsatthebottomoftheSelect
profilelist.Enteranamefortheprofile.
TheorderofthislistdeterminestheorderofprofilesintheApplytoDocumentmenu.
Whenyouaddanewheader& footerprofile,itisaddedtobottomoftheSelectprofilelist,
andinsertedatthetopoftheApplytodocumentmenu.
Todeleteaheaderandfooterprofile,selectaprofileandclickDelete
3. ToapplyaHeader& FooterprofiletoyourPDF documentandclosetheTheManageHeaders
& Footersdialog,selectaprofile,andclickApply.
Toaddanewheaderorfooterintoaprofile
1. IntheEdittab,inthePageMarksgroup,clickHeader& Footer.TheManageHeaders& Footers
dialogappears
2. SelectaprofileintheSelectprofilelist,andclickAdd.Selectatypeofheaderorfooter: 
Text: entertextforyourheaderorfooter
Image: useanimagetouseasaheaderorfooterforyourpages
PDF: importaPDFfiletouseasaheaderorfooter
3. Configurepropertiesforyourheaderorfooter:
IntheHeader/Footernamefield,enteranameforNitroPro8touseinlistsandmenus.This
namecanbedifferenttothetextthatappearsinaheaderorfooterinyourPDF document.
SpecifywhetheritisanOverlay(ontopofanycontent,suchastext)orUnderlay(inthe
NitroPro8-UserGuide
VB.NET PDF - View PDF with WPF PDF Viewer for VB.NET
Tools Tab. Item. Name. Description. Ⅰ. Hand. Pan around the PDF document. Ⅱ. Select. Select text and image to copy and paste using Ctrl+C and Ctrl+V.
find and replace text in pdf file; pdf select text
C# WPF PDF Viewer SDK to view PDF document in C#.NET
Tools Tab. Item. Name. Description. Ⅰ. Hand. Pan around the PDF document. Ⅱ. Select. Select text and image to copy and paste using Ctrl+C and Ctrl+V.
pdf text select tool; pdf make text searchable
141
©Nitro
background,behindanycontent)
Otheroptionsforthecolor,background,andplacementoftheheaderorfooter
4. ClickSavetoaddthenewheaderorfootertotheselectedprofile
TIP: Youaddmultipleheaderandfooterobjectsintoaprofile.
Toimportorexportaheaderorfooterprofile:
1. OntheEdittab,inthePageMarksgroup,clickHeader& Footer.TheManageHeaders& Footers
dialogappears.
2. Dooneofthefollowing:
Toexportaheaderorfooterprofile,selectaprofileintheSelectprofilelist,andclickExport.
Savetheprofilesasata.nxpfile
Toimportaheaderorfooterprofile,clickImport.Whenyouimporta.nxpfile,thenew
profileisaddedtotheendofthelistofprofiles
TIP: ImagesassociatedwithaHeaders& Footersprofileareonlyreferenced,andnotexported.
ToinsertaheaderorfooterintoyourPDF document:
1. OntheEdittab,inthePageMarksgroup,clickthearrowunderHeader& Footer,andselect
Applytodocument
2. Amenulistsallheaderorfooterprofiles.Selectaprofilefromthelisttoapplyittoyour
PDF document
NOTE:Ifyouinsertatext-basedheaderorfooter,itmaynotdisplayproperlyiftherecipientdoesnot
havethesamefontinstalledontheirsystem.Ifyouareunsureaboutwhatfontsyourrecipientsuse,
useStandardfonts,suchasTimes-Roman,Courier,HelveticaorSymbol.Formoreinformation,see
Embedded
fonts
.
Toremoveallheadersandfootersfromadocument:
1. OntheEdittab,inthePageMarksgroup,clickthearrowunderHeader& Footer,andselect
RemoveHeaders&Footers
2. A dialogappears,andasksyoutoconfirmthatyouwanttoremoveallheadersandfooters.Click
OK.
TIP: Toremoveaparticularheaderorfooterfromadocument,selectitwiththeEdittool,thenright-
clickit,andchooseDeletefromthemenu.
NitroPro8-UserGuide
VB.NET PDF Text Redact Library: select, redact text content from
Page: Replace PDF Pages. Page: Move Page Position. Page: Copy, Paste PDF Pages. Page: Rotate a PDF Page. PDF Read. Text: Extract Text from PDF. Text: Search Text
how to select text in pdf and copy; select text pdf file
C# HTML5 PDF Viewer SDK to view PDF document online in C#.NET
Image: Copy, Paste, Cut Image in Page. Link: Edit URL. Bookmark: Edit Bookmark. Metadata: Edit, Delete Metadata. Select text and image on PDF document. 2.
how to select text in pdf image; pdf text search tool
142
©Nitro
Watermarksandbackgrounds
Thewatermarkstoolletsyouinserttext,images,andotherPDFfilesintooneormorepagesina
PDF document.Youhavefullcontrolovertheposition,size,opacity,andotherpropertiesofyour
watermarks,andyoucansavethemforreuse.Youcanalsoimportandexportwatermarkprofilestoshare
themwithotherpeople.Watermarkprofilescontainoneormorewatermarksorbackgrounds.
Commonusesofwatermarksinclude:
l
Watermarksandbackgrounds:Insertcompanylogosandothermarkstoretaincorporateidentity
acrosspagesanddocuments
l
Showthestatusofadocument: Applyanimageasawatermark—suchasReviewed,Approved,
and Draft—soyourrecipientsknowthestatusofthedocumentyouhaveshared.
Tolistallmanagedwatermarks:
1. IntheEdittab,inthePageMarksgroup,clickWatermark.TheManageWatermarks
& Backgroundsdialogappears
2. SeetheSelectprofilesectionforalistofwatermarkprofiles.Profilescancontainmorethanone
watermark.
3. Toseeallwatermarksinaprofile,clickthe+buttonbesidetheprofile
TomanageprofilesandconfiguretheApplytodocumentmenu:
1. IntheEdittab,inthePageMarksgroup,clickWatermark.TheManageWatermarks
& Backgroundsdialogappears
2. SeetheSelectprofilesectionforalistofwatermarkprofiles.Doanyofthefollowing:
Torenameaprofile,double-clickonit,andenteranewname
Tocreateanewprofile,clickNewProfile.AnewprofileappearsatthebottomoftheSelect
profilelist.Enteranamefortheprofile.
TheorderofthislistdeterminestheorderofprofilesintheApplytoDocumentmenu.
Whenyouaddanewwatermarkprofile,itisaddedtobottomoftheSelectprofilelist,and
insertedatthetopoftheApplytodocumentmenu.
Todeleteawatermarkprofile,selectaprofileandclickDelete
3. ToapplyawatermarkprofiletoyourPDF documentandclosetheTheManageWatermarks
& Backgroundsdialog,selectaprofile,andclickApply.
Toaddanewwatermarkorbackgroundintoaprofile
1. IntheEdittab,inthePageMarksgroup,clickWatermark.TheManageWatermarks
& Backgroundsdialogappears
2. SelectaprofileintheSelectprofilelist,andclickAdd.Selectatypeofwatermark: 
Text: entertextforyourwatermark
Image: useanimagetouseasawatermarkorbackgroundforyourpages
PDF: importaPDFfiletouseasawatermarkorpagebackground
3. Configurepropertiesforyourwatermarkorbackground:
IntheWatermarknamefield,enteranameforNitroPro8touseinlistsandmenus.This
namecanbedifferenttothetextthatappearsinawatermarkinyourPDF document.
SpecifywhetheritisanOverlay(ontopofanycontent,suchastext)orUnderlay(inthe
NitroPro8-UserGuide
143
©Nitro
background,behindanycontent)
Otheroptionsforthecolor,background,andplacementofthewatermarkorbackground
4. ClickSavetoaddthenewwatermarkorbackgroundtotheselectedprofile
TIP: Youcanaddmultiplewatermarkandbackgroundobjectsintoaprofile.
Toimportorexportawatermarkprofile:
1. OntheEdittab,inthePageMarksgroup,clickWatermark.TheManageWatermarks
& Backgroundsdialogappears.
2. Dooneofthefollowing:
Toexportawatermarkprofile,selectaprofileintheSelectprofilelist,andclickExport.Save
theprofilesasata.nxpfile
Toimportawatermarkprofile,clickImport.Whenyouimporta.nxpfile,thenewprofileis
addedtotheendofthelistofprofiles
TIP: Imagesassociatedwithawatermarkprofileareonlyreferenced,andnotexported.
ToinsertawatermarkorbackgroundintoyourPDF document:
1. OntheEdittab,inthePageMarksgroup,clickthearrowunderWatermark,andselectApplyto
document
2. Amenulistsallwatermarkandbackgroundprofiles.Selectaprofilefromthelisttoapplyittoyour
PDF document
NOTE:Ifyouinsertatext-basedwatermark,itmaynotdisplayproperlyiftherecipientdoesnothave
thesamefontinstalledontheirsystem.Ifyouareunsureaboutwhatfontsyourrecipientsuse,use
Standardfonts,suchasTimes-Roman,Courier,HelveticaorSymbol.Formoreinformation,seeEmbed-
ded
fonts
.
Toremoveallwatermarksandbackgroundsfromadocument:
1. OntheEdittab,inthePageMarksgroup,clickthearrowunderWatermark,andselectRemove
Watermarksfromthemenu
2. Adialogasksyoutoconfirmremovalofallwatermarks.ClickOK.
TIP: Toremoveaparticularwatermarkorbackgroundfromadocument,selectitwiththeEdittool,
thenright-clickit,andchooseDeletefromthemenu.
NitroPro8-UserGuide
144
©Nitro
BatesNumbers
Batesnumberingisusefulinlegalandotherfieldsthatneedallpagesinadocumentcollectiontobe
labeled,accountedfor,andeasytolocate.TheBatesnumberingtoolallowsyoutoaddauniquenumber
toeachpage.Youcanstartthenumberingatanypointand,whenprocessingmorethanonedocument,
continuethenumberingacrossthedocuments.
ToaddBatesnumberstoaPDF:
1. OntheEdittab,intheHeaders&Footersgroup,clickBatesNumber
2. InthePrefix,Suffix,andStartatboxes,enteryournumberingasrequired
3. Clicktheoptionstouseforfontpropertiesandlayout,andthepagestoprocess
4. ClickApply
ToaddBatesnumberstoacollectionofPDFfiles:
1. OntheEdittab,intheHeaders&Footersgroup,clickthearrownexttoBatesNumberandclick
MultipleFiles
2. Addandorderthefilesyouwanttoprocess,andthenclickNext
3. InthePrefix,Suffix,andStartatboxes,enteryournumberingasrequired
4. Clicktheoptionstouseforfontpropertiesandlayout,andthepagestoprocess
5. ClickApply
NitroPro8-UserGuide
145
©Nitro
Attachafile
Inadditiontocontainingtextandgraphics,PDFfilescancontainentirefilesinsidethemas
attachments. Thismakesexchangingsetsofdocumentseasierandmorereliable.TheAttachmentspane
providesyouacentralplacetoview,insert,delete,andexportattachments.
NitroPro8letsyouattachfilesintwoways:
l
DocumentLevelAttachments:Ifarepreparingadocumentforotherstoreview,youmaywishto
attachthesourcefilealongwithadditionalreferencematerials(suchasspreadsheetsanddrawing
files)atthedocumentlevel,providingreviewersacompletepacketofinformationthattheycan
accessatanytimewhilereviewingthePDFversion.
l
AnnotationAttachments:Ifyouarereviewingadocumentpreparedbysomeoneelse,andneed
toprovidefeedbackintheformofaseparatefile(forexample,arevisedengineeringdrawingor
pricelist),youmaywishtoattachthesefilesasannotations,sinceyoucaninserttheseatexact
locationswithinthePDF.AnnotationattachmentsareshownasapaperclipicononthePDFpage;
reviewerscandouble-clicktheicontoopenthefile.
Toattachafileatthedocumentlevel:
1. IntheFilemenu,selectAttachFiles.TheOpendialogappears.
2. Browsetothefileyouwishtoattach,selectit,andclickOpen.Thefileisattachedtoyour
PDF document,andisembeddedinthefilewhenyousaveit.
Formoreinformation,seeAttachments
Pane
andAttach
files
as
annotations
.
NitroPro8-UserGuide
Documents you may be interested
Documents you may be interested