mvc open pdf in new tab : Extract pictures from pdf SDK application service wpf windows web page dnn Cairo0-part938

Package ‘Cairo’
September26,2015
Version 1.5-9
Title Rgraphicsdeviceusingcairographicslibraryforcreating
high-qualitybitmap(PNG,JPEG,TIFF),vector(PDF,SVG,
PostScript)anddisplay(X11andWin32)output
Author SimonUrbanek<Simon.Urbanek@r-project.org>,Jef-
freyHorner<jeff.horner@vanderbilt.edu>
Maintainer SimonUrbanek<Simon.Urbanek@r-project.org>
Depends R(>=2.4.0)
Imports grDevices,graphics
Suggests png
Enhances FastRWeb
Description Cairographicsdevicethatcanbeusetocreatehigh-qualityvec-
tor(PDF,PostScriptandSVG)andbitmapoutput(PNG,JPEG,TIFF),andhigh-qualityrender-
ingindisplays(X11andWin32).Sinceitusesthesameback-endforalloutput,copy-
ingacrossformatsisWYSIWYG.FilesarecreatedwithoutthedependenceonX11orotherex-
ternalprograms.Thisdevicesupportsalphachannel(semi-transparentdrawing)andresult-
ingimagescancontaintransparentandsemi-transparentregions.Itisidealforuseinserverenvi-
ronments(fileoutput)andasareplacementforotherdevicesthatdon'thaveCairo'scapabili-
tiessuchasalphasupportoranti-aliasing.Backendsaremodularsuchthatanysubsetofback-
endsissupported.
License GPL-2
SystemRequirements cairo(>=1.2http://www.cairographics.org/)
URL http://www.rforge.net/Cairo/
NeedsCompilation yes
Repository CRAN
Date/Publication 2015-09-2609:05:40
Rtopicsdocumented:
Cairo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Cairo.capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1
Extract pictures from pdf - Select, copy, paste PDF images in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support PDF Image Extraction from a Page, a Region on a Page, and PDF Document
extract images from pdf online; pdf extract images
Extract pictures from pdf - VB.NET PDF Image Extract Library: Select, copy, paste PDF images in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Support PDF Image Extraction from a Page, a Region on a Page, and PDF Document
extract jpg from pdf; some pdf image extract
2
Cairo
Cairo.capture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Cairo.onSave . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Cairo.serial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
CairoFonMatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
CairoFonts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Index
12
Cairo
CreateanewCairo-basedgraphicsdevice
Description
Cairoinitializesanewgraphicsdevicethatuses thecairographicslibraryforrendering. The
currentimplementationproduceshigh-qualityPNG,JPEG,TIFFbitmapfiles,highresolutionPDF
fileswithembeddedfonts,SVGgraphicsandPostScriptfiles. ItalsoprovidesX11andWindows
interactivegraphicsdevices. Unlikeotherdevicesitsupportsallgraphicsfeaturesincludingalpha
blending,anti-aliasingetc.
CairoX11,CairoPNG,CairoPDF,CairoPSandCairoSVGareconveniencewrappersofCairothat
takethesameargumentsasthecorrespondingdeviceitreplacessuchasX11,png,pdf,etc.Useof
theCairofunctionisencouragedasitismoreflexiblethanthewrappers.
Usage
Cairo(width = 640, height = 480, file="", type="png", pointsize=12,
bg = "transparent", canvas = "white", units = "px", dpi = "auto",
...)
CairoX11(display=Sys.getenv("DISPLAY"), width = 7, height = 7,
pointsize = 12, gamma = getOption("gamma"), bg = "transparent",
canvas = "white", xpos = NA, ypos = NA, ...)
CairoPNG(filename = "Rplot%03d.png", width = 480, height = 480,
pointsize = 12, bg = "white", res = NA, ...)
CairoJPEG(filename = "Rplot%03d.jpeg", width = 480, height = 480,
pointsize = 12, quality = 75, bg = "white", res = NA, ...)
CairoTIFF(filename = "Rplot%03d.tiff", width = 480, height = 480,
pointsize = 12, bg = "white", res = NA, ...)
CairoPDF(file = ifelse(onefile, "Rplots.pdf","Rplot%03d.pdf"),
width = 6, height = 6, onefile = TRUE, family = "Helvetica",
title = "R Graphics Output", fonts = NULL, version = "1.1",
paper = "special", encoding, bg, fg, pointsize, pagecentre)
CairoSVG(file = ifelse(onefile, "Rplots.svg", "Rplot%03d.svg"),
width = 6, height = 6, onefile = TRUE, bg = "transparent",
pointsize = 12, ...)
CairoWin(width = 7, height = 7, pointsize = 12,
record = getOption("graphics.record"),
rescale = c("R", "fit", "fixed"), xpinch, ypinch, bg =
"transparent", canvas = "white", gamma = getOption("gamma"),
VB Imaging - VB Code 93 Generator Tutorial
Visual VB examples here for developers to create and write Code 93 linear barcode pictures on PDF documents, multi-page TIFF, Microsoft Office Word, Excel and
how to extract images from pdf file; extract image from pdf c#
VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
application. In addition, texts, pictures and font formatting of source PDF file are accurately retained in converted Word document file.
extract pdf images; extract images from pdf files
Cairo
3
xpos = NA, ypos = NA, buffered = getOption("windowsBuffered"),
restoreConsole = FALSE, ...)
CairoPS(file = ifelse(onefile, "Rplots.ps", "Rplot%03d.ps"),
onefile = TRUE, family, title = "R Graphics Output", fonts = NULL,
encoding, bg, fg, width, height, horizontal, pointsize, paper,
pagecentre, print.it, command, colormodel)
Arguments
width
widthoftheplotarea(alsoseeunits).
height
heightoftheplotarea(alsoseeunits).
file
nameofthefiletobecreatedorconnectiontowriteto. OnlyPDF, , PSand
PNGtypessupportconnections.ForX11typefilespecifiesthedisplayname.
IfNULLor""areasonabledefaultwillbechosenwhichis"plot.type"for
file-orientedtypesandvalueoftheDISPLAYenvironmentvariableforX11.For
imagetypesthefilenamecancontainprintf-styleformattingexpectingoneinte-
gerparameterwhichisthepagenumber,suchas"Rplot%03d.png".Thepage
numbersstartatone.
type
outputtype. ThisversionofCariosupports"png", , "jpeg"and"tiff"bitmaps
(png/tiffwithtransparentbackground), "pdf"PDF-filewithembeddedfonts,
"svg"SVG-file,"ps"PostScript-file,"x11"X11interactivewindowand"win"
Windowsgraphics. Aspecialtype"raster"createsanimageback-endthatpro-
ducesnoactualoutputfilebutcanbeusedinconjunctionwithanyofdev.capture(),
grid.cap()orCairo:::.image()tocreatein-memoryimages.Dependingon
thesupportofvariousbackendsincairographicssomeoftheoptionsmaynot
beavailableforyoursystem.SeeCairo.capabilitiesfunction.
pointsize
initialtextsize(inpoints).
canvas
canvascolor(mustbeopaque).Thecanvasisonlyusedbydevicesthatdisplay
graphicsonascreenandthecanvasisonlyvisibleonlyifbgistransparent.
bg
plotbackgroundcolor(canincludealpha-componentorbe transparentallto-
gether).
units
unitsforofthewidthandheightspecifications.Itcanbeanyof"px"(pixels),
"in"(inches),"pt"(points),"cm"(centimeters)or"mm"(millimeters).
dpi
DPIusedfortheconversionofunitstopixels.Ifsetto"auto"theDPIresolution
willbedeterminedbytheback-end.
...
additionalbackendspecificparameters(e.g.qualitysettingforJPEG(0..100),
compressionforTIFF(0,1=none, 5=LZW(default), 7=JPEG,8=AdobeDe-
flate),locatorforacustomlocatorfunctioninimageback-ends)
Allparameterslistedbelowaredefinedbytheotherdevicesareareusedbythe
wrapperstomakeiteasierreplaceotherdevicesbyCairo. Theyaredescribed
indetailinthedocumentationcorrespondingtothedevicethatisbeingreplaced.
display
X11display,seeX11
gamma
gammacorrection
xpos
seeX11
ypos
seeX11
C# Imaging - C# Code 93 Generator Tutorial
Visual C# examples here for developers to create and write Code 93 linear barcode pictures on PDF documents, multi-page TIFF, Microsoft Office Word, Excel and
extract pdf pages to jpg; extract color image from pdf in c#
VB.NET Image: VB.NET Codes to Load Images from File / Stream in .
When evaluating this VB.NET imaging library with pictures of your own We are dedicated to provide powerful & profession imaging controls, PDF document, image to
extract photos pdf; how to extract images from pdf
4
Cairo
filename
sameasfileinCairo
res
resolutioninppi,seepng,willoverridedpiinCairoifsettoanythingotherthan
NAorNULL.NotethatcairographicsdoesnotsupporttaggingPNGoutputfiles
withDPIsotherasterimagewillbeproducedwiththedpisetting,butreaders
mayrenderitatsomedefaultdpisetting.
quality
qualityofthejpeg,seejpeg
onefile
logical:iftrue(thedefault)allowmultiplefiguresinonefile(seepdf).falseis
currentlynotsupportedbyvectordevices
family
fontfamily,seepdf
title
seepdf(ignored)
fonts
seepdf,ignored,Cairoautomaticallydetectsandembedsfonts
version
PDFversion,seepdf(ignored)
paper
seepdf(ignored,Cairousesdevicedimensions)
encoding
seepdf(ignored,Cairousesnativeencondingexceptforsymbols)
fg
seepdf(ignored)
pagecentre
seepdf(ignored,Cairousesdevicedimensionsandthusitisirrelevant)
record
Windows-specific,ignoredonunix
rescale
Windows-specific,ignoredonunix
xpinch
Windows-specific,ignoredonunix
ypinch
Windows-specific,ignoredonunix
buffered
Windows-specific,ignoredonunix
restoreConsole Windows-specific,ignoredonunix
horizontal
seepostscript(ignored)
print.it
seepostscript(ignored)
command
seepostscript(ignored)
colormodel
seepostscript(ignored,CairoalwaysusesRGBorARGB)
Value
The(invisible)returnvalueisNULLifthedevicecouldn’tbecreatedoraCairoobjectifsuccessful.
Thevauleoftheobjectisthedevicenumber.
Knownissues
• TheX11backendisquiteslow. . Thereasonisthecairographicsimplementationoftheback-
end,sowecan’tdomuchaboutit.Itshouldbepossibletodropcairographics’Xlibbackend
entirelyanduseimagebackendcopiedintoanX11windowinstead.Wemaytrythatinfuture
releases.
• TrueType(andOpenType)fontsaresupportedwhenthispackageiscompiledagainstacairo
graphicslibraryconfiguredwithFreeTypeandFontconfigsupport.Thereforemakesurehave
acairographicslibrarywithallbellsandwhistlestogetagoodresult.
• Rmathsymbolsaresupported, , butrequireaTrueType"Symbol"fontaccessibletoCairo
underthatname.
C#: Use OCR SDK Library to Get Image and Document Text
a digital camera, scanned document or image-only PDF using C# color image recognition for scanned documents and pictures in C#. Steps to Extract Text from Image.
extract image from pdf java; extract image from pdf online
VB.NET Image: Sharpen Images with DocImage SDK for .NET
VB.NET Coding. When you have made certain corrections in your VB.NET project photo or image files, you might want to sharpen your pictures before saving them
pdf image text extractor; how to extract a picture from a pdf
Cairo.capabilities
5
SeeAlso
CairoFonts
Examples
# very simpleKDE
Cairo(600, 600, file="plot.png", type="png", bg="white")
plot(rnorm(4000),rnorm(4000),col="#ff000018",pch=19,cex=2)# semi-transparent red
dev.off() # creates a file "plot.png" with the above plot
# you can useany Cairo backend and get the same result
# vector, bitmap or on-screen
CairoPDF("plot.pdf", 6, 6, bg="transparent")
data(iris)
attach(iris)
plot(Petal.Length, rep(-0.03,length(Species)), xlim=c(1,7),
ylim=c(0,1.7), xlab="Petal.Length", ylab="Density",
pch=21, cex=1.5, col="#00000001", main = "Iris (yet again)",
bg=c("#ff000020","#00ff0020","#0000ff20")[unclass(Species)])
for (i in 1:3)
polygon(density(Petal.Length[unclass(Species)==i],bw=0.2),
col=c("#ff000040","#00ff0040","#0000ff40")[i])
dev.off()
Cairo.capabilities
ReportswhichoutputtypesaresupportedbythisCairobuild
Description
Cairo.capabilitiesreturnsalogicalvectordescribingthecapabilitiesofthisparticularCairo
build.
Usage
Cairo.capabilities()
Details
TheCairopackageprovidesmultipleback-ends,suchasimages(PNG,JPEG,TIFF),vectorgraph-
ics(PDF,PostScript,SVG)ordisplays(X11,Windows).However,notallsystemssupportallback-
ends. TheCairo.capabilitiesfunctionreturnsalogicalvectorshowingwhichcapabilitiesare
supportedinthisparticularCairobuild.
Notethatthecapabilitiesdependbothonthelibrariesavailableinthesystemaswellasthecompiled-
inmodulesincairographics.
SeeAlso
Cairo
VB.NET Image: VB.NET Code to Create Watermark on Images in .NET
image one onto it, and whether to burn it to the pictures to make We are dedicated to provide powerful & profession imaging controls, PDF document, tiff files
how to extract images from pdf files; extract image from pdf file
VB.NET Image: Codings for Image Filter Processing with .NET Image
RasterEdge .NET Image SDK provides many different and interesting filters for your pictures / photos with simple and a few Visual Basic .NET programming codings
pdf image extractor c#; extract images from pdf acrobat
6
Cairo.onSave
Cairo.capture
Capturecontentsofanimagebackendoradisplaylistsnapshot.
Description
Cairo.captureisessentiallythesameasdev.capture(native=TRUE)withtheexceptionthatit
workswheredev.capturedoesn’tsuchasonSavecallbacks.
Cairo.snapshotisverysimilartorecordPlotexceptitalsoallowstoretrievethelastsnapshot.
Usage
Cairo.capture(device = dev.cur())
Cairo.snapshot(device = dev.cur(), last=FALSE)
Arguments
device
devicenumberoranobjectofthe class Cairo(asobtainedfrom the Cairo
function).
last
logical,ifFALSEthenanewsnapshotiscreated(exactlythesameasrecordPlot()),
ifTRUEthenthelastknownsnapshotisretrieved,ifNAthenasnapshotiscreated
first,butifthedisplaylistisemptylastsnapshotisretrievedinstead.
Value
Cairo.capture:objectoftheclassnativeRaster.
Cairo.snapshot:objectoftheclassrecordedplot.
Author(s)
SimonUrbanek
Cairo.onSave
Cairocallbacks
Description
Cairo.onSavesettheonSavecallbackwhichallowsRcodetoberunwhenCairofinalizesapage
(eitherduetoanewpage beingcreatedorbythedevicebeingclosed). The callbackexpects
function(device, page)wheredevicewillbethedevicenumberandpageis thecurrently
finishedpagenumber(startingat1).
Usage
Cairo.onSave(device = dev.cur(), onSave)
C# Imaging - Scan RM4SCC Barcode in C#.NET
& decode RM4SCC barcode from scanned documents and pictures in your Decode RM4SCC from documents (PDF, Word, Excel and PPT) and extract barcode value as
extract photo from pdf; extract jpeg from pdf
VB.NET TIFF: How to Draw Picture & Write Text on TIFF Document in
Many users concern about the issue of how to draw pictures or write text We are dedicated to provide powerful & profession imaging controls, PDF document, tiff
extract images pdf acrobat; extract vector image from pdf
Cairo.serial
7
Arguments
device
devicenumberorCairoobject(asreturnedbytheCairofunction)
onSave
functionthatwillreplacethecurrentcallbackorNULLtoremovethecurrent
callback
Value
TheoldcallbackbeingreplacedorNULLiftherewasnone.
Note
ThefunctiononSavewillbeevaluatedintheglobalenvironmentandnoerrorcheckingisdone,so
youmustmakesuretocatcherrors,otherwisethebehaviorisundefined(andmayincludedcrashing
Rorotherbadthings).
Author(s)
SimonUrbanek
SeeAlso
Cairo
Examples
if (require(png, quietly=TRUE)) {
dev <- Cairo(800, 600, type=raster)
Cairo.onSave(dev, function(dev, page)
.GlobalEnv$png <- writePNG(Cairo.capture(dev))
)
plot(1:10, col=2)
dev.off()
str(png)
}
Cairo.serial
CheckforchangesinthegraphicsstateofCairodevices.
Description
Cairo.serialreturnsanintegerthatisincreasedwitheveryplottingoperationonthedevice.This
allowsusercodetodeterminewhetheranynewcontenthasbeenaddedtothedevicesinceitwas
lastchecked.
Usage
Cairo.serial(device = dev.cur())
8
CairoFonMatch
Arguments
device
devicenumberoranobjectofthe class Cairo(asobtainedfrom the Cairo
function).
Value
Integervalue.
Note
Theintegervalueoverflowsto0at2^31.Typicallyonlyequalityshouldbecheckedandforsuchit
isextremelyunlikelythatthestatehaschangedyettheserialvalueisthesameduetooverflow.
Author(s)
SimonUrbanek
CairoFonMatch
Findinstalledfontswithafontconfigpattern
Description
CairoFontMatchsearchesforfontsbasedonafontconfigpattern.
Usage
CairoFontMatch(fontpattern="Helvetica",sort=FALSE,verbose=FALSE)
Arguments
fontpattern
character;afontconfigpattern.
sort
logical; if’FALSE’, , displayonlythebestmatchingfontforthepattern. If
’TRUE’,displayasortedlistofbestmatchingfonts.
verbose
logical;if’FALSE’,displaythefamily,style,andfilepropertyforthepattern.if
’TRUE’,displaythecanonicalfontpatternforeachmatch.
Details
Thisfunctiondisplaysalistofoneormorefontsmatchingthesuppliedfontconfigpattern.sort=’FALSE’
displaysthefontthatCairowilluseforthesuppliedpattern,whilesort=’TRUE’displaysasorted
listofbestmatchingfonts.Thesimplestfontconfigpatternmatchingallinstalledfontsis":".Here’s
whatCairoFontMatch(":")displaysonthissystem:
1.family:"BitstreamVeraSans",style:"Roman",file:"/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
CairoFonMatch
9
verbose=’FALSE’displaysthefontproperties’family’,’style’,and’file’,whileverbose=’TRUE’
willdisplaythecanonicalfontpattern,displayingallpropertiesknownforthefont(outputofCairo-
FontMatch(":",verbose=TRUE)):
1.family:"BitstreamVeraSans",style:"Roman",file:"/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
"BitstreamVeraSans-12:familylang=en:style=Roman:stylelang=en:slant=0:weight=80:width=100:pixelsize=12.5:foundry=bitstream:hintstyle=3:hinting=True:verticallayout=False:autohint=False:globaladvance=True:index=0:outline=True:scalable=True:dpi=75:rgba=1:scale=1:fontversion=131072:fontformat=TrueType:embeddedbitmap=True:decorative=False"
AsimpleapproachtoselectingafontstartswithcallingCairoFontMatch(":",sort=TRUE)tolistall
availablefonts.Next,theuserwillchooseafontfromthelistandcallCairoFontMatch("FamilyName:style=PreferredStyle",sort=TRUE)
substituting"FamilyName"and"PreferredStyle"withthedesiredvalues.Ifonlyonefontisfound,
thentheuserhasfoundthefontconfigpatternthatwillselectthedesiredfont. Otherwise,theuser
willcallCairoFontMatchwithverbose=TRUEtodetermineotherpropertiestoaddtothepatternto
attainthedesiredfont,forinstancethefontformat.
Thefollowingexcerptisfromthefontconfiguser’smanual(http://fontconfig.org/)andbetterde-
scribesthefontconfigpatterndefinition:
"Fontconfigprovidesatextualrepresentationforpatternsthatthelibrarycanbothacceptandgen-
erate. Therepresentationisinthreeparts,firstalistoffamilynames,secondalistofpointsizes
andfinallyalistofadditionalproperties:
<families>-<pointsizes>:<name1>=<values1>:<name2>=<values2>...
Valuesinalistareseparatedwithcommas.Thenameneedn’tincludeeitherfamiliesorpointsizes;
theycanbeelided. Inaddition,therearesymbolicconstantsthatsimultaneouslyindicatebotha
nameandavalue.Herearesomeexamples:
Font Pattern
Meaning
----------------------------------------------------------
Times-12
12 point Times Roman
Times-12:bold
12 point Times Bold
Courier:italic
Courier Italic in the default size
Monospace:matrix=1 .1 0 1
The users preferred monospace font
with artificial obliquing
The’\’,’-’,’:’ and’,’charactersinfamilynamesmustbepreceededbya’\’charactertoavoid
havingthemmisinterpreted. Similarly,valuescontaining’\’,’=’,’\_’,’:’ and’,’mustalsohave
thempreceededbya’\’character.The’\’charactersarestrippedoutofthefamilynameandvalues
asthefontnameisread."
Knownissues
• ThisfunctionisonlyavailablewhentheCairographicslibraryisconfiguredwithFreeType
andFontcofigsupport.
SeeAlso
CairoFonts,Cairo
10
CairoFonts
CairoFonts
SetthefontsusedforallCairographicsdevices.
Description
CairoFontsinitializesthefontsusedforCairographicsdevices.
Usage
CairoFonts(
regular="Helvetica:style=Regular",
bold="Helvetica:style=Bold",
italic="Helvetica:style=Italic",
bolditalic="Helvetica:style=Bold Italic,BoldItalic",
symbol="Symbol"
)
Arguments
regular
character;fontconfigpatternforthe’plaintext’font.
bold
character;fontconfigpatternforthe’boldface’font.
italic
character;fontconfigpatternforthe’italic’font.
bolditalic
character;fontconfigpatternforthe’bolditalic’font.
symbol
character;fontconfigpatternforthe’symbol’font.
Details
ThisfunctionsetsthefontsforCairographicsdevicesglobally;previouslyopenedCairographics
deviceswillalsousethesefonts.Theargumentnamescorrespondtothefivevaluesofthegraphical
parameter’font’,i.e.regularis1,boldis2,italicis3,etc.
Foranexplanationoffontconfigpatterns,seeCairoFontMatch.
Knownissues
• ThisfunctionisonlyavailablewhenthecairographicslibraryisconfiguredwithFreeType
andFontcofigsupport.
• Rmathsymbolsaresupported,butrequirea"Symbol"fontwiththeAdobesymbolencoding.
Atthetimeofthisreleasetheauthorsareunawareofafreeversionofthisfont,howeverthey
doexistonWindowsandMacOSX.
SeeAlso
CairoFontMatch,Cairo,par,
Documents you may be interested
Documents you may be interested