using pdf.js in mvc : Convert multiple page pdf to jpg SDK control API .net web page windows sharepoint GrGenNET-Manual26-part1926

20.6 GraphInputandOutput
247
mapping. ItissupportedbyGrGen.NETasexchangeformatforinter-tooloperability.The
metamodelisassumedtostemfromapreviousimportofanecorele,withitsspecicwayof
mapping.ecoreto.gm,i.e.withanunderscoreprex,anodetypeprexfortheedgetypes,
andthe[containment=true] annotationat the edges that express containment,whichis
neededsothattheyarewrittenwithXMLnodecontainment. Ifthe.gzsuxisgiventhe
graphissavedzipped.
-
export
-
Filename
-
.grg
-
.gz
-
ExportsaninstancegraphinGRGformat,i.e. asoneGrGenrule e withanempty pattern
andalargemodifypart. Thereisnoimporterexisting,thisformatisnotfornormaluseas
storageformat!Ifthe.gzsuxisgiventhegraphissavedzipped.
-
import
-
Filename
-
.grs
-
.grsi
-
.gz
-
ModelOverride
-
ImportsthespeciedgraphinstanceinGRS(.grs/.grsi)format(thereducedGrShellscript,
asavedgraphcanonlybeimportedbyinclude(butanexportedgraphcanbeimportedby
include,too)). Thegraphmodelreferencedinthe.grs/.grsimustbeavailableas.gm-le.If
amodeloverrideoftheformFilename.gmisspecied,thegivenmodelwillbeusedinstead
ofthemodelreferencedintheGRSle. Ifamodeloverride e oftheformFilename.grgis
specied,themodel(s)ofthegivenrulelewillbeusedinsteadofthemodelintheGRSle.
Ifthe.gzsuxisgiventhegraphisexpectedtobezipped.
-
import
-
Filename
-
.gxl
-
.gz
-
ModelOverride
-
ImportsthespeciedgraphinstanceandmodelinGXLformat. Ifamodeloverrideofthe
formFilename.gmisspecied,thegivenmodelwillbeusedinsteadofthemodelintheGXL
le.IfamodeloverrideoftheformFilename.grgisspecied(s),themodelofthegivenrule
lewillbeusedinsteadofthemodelintheGXLle. The.gxl-graphmustbecompatible
tothe.gm-model/.grg-model. Ifthe.gzsuxisgiventhegraphisexpectedtobezipped.
Convert multiple page pdf to jpg - Convert PDF to JPEG images in C#.net, ASP.NET MVC, WinForms, WPF project
How to convert PDF to JPEG using C#.NET PDF to JPEG conversion / converter library control SDK
batch pdf to jpg; bulk pdf to jpg
Convert multiple page pdf to jpg - VB.NET PDF Convert to Jpeg SDK: Convert PDF to JPEG images in vb.net, ASP.NET MVC, WinForms, WPF project
Online Tutorial for PDF to JPEG (JPG) Conversion in VB.NET Image Application
best program to convert pdf to jpg; convert pdf into jpg online
248
GrShellLanguage
NOTE(50)
Normallyyouarenot onlyinterestedinimportingaGXLgraph(andviewingit),butyou
wanttoexecuteactionsonit. Theproblemisthattheactionsaremodeldependent. So,in
ordertoapplyactions,youmustuseamodeloverride,whichworksthisway:
1. new w graph "YourName.grg"
This createsthemodellibrary lgsp-YourNameModel.dllandtheactionslibrary lgsp-
YourNameActions.dll(whichdependsonthemodellibrarygeneratedfromthe"using
YourName;").
2. import t InstanceGraphOnly.gxl YourName.gm
This imports theinstance graphfromthe.gxlbutuses themodelspeciedinYour-
Name.gm(itmustttothemodelinthe.gxlinordertowork).
3. select t actions lgsp-YourNameActions.dll
Thisloadstheactionsfromtheactionslibraryinadditiontothealreadyloadedmodel
andinstancegraph(cf. 20.12).
4. Nowyouarereadytousetheactions.
As ofversion3.0betayoucanspecifya.grgas modeloverride;basically itdoes what the
givenenumerationdoes.
-
import
-
Filename
-
.ecore
-
Filename
-
.xmi
-
Filename
-
.grg
-
ImportsthespeciedgraphinstanceinXMIformatandthemodelsinecoreformat. They
can’tbeimporteddirectly,asGrGen.NET isnotbuiltonEMF.Instead,duringtheimport
process anintermediate .gmis writtenwhichis equivalent tothe .ecoregiven{youmay
inspect it to see how the e content t gets s mapped. . (The e importer maps s packages s to GrGen
packages,classestoGrGennodeclasses,theirattributestocorrespondingGrGenattributes,
andtheirreferencestoGrGenedgeclasses. Inheritanceistransferredone-to-one,andenu-
merationsaremappedtoGrGenenums. Edgetypenamesareprexedbythenamesofthe
nodetypestheyoriginatefromtopreventnameclashesforreferencesofsamename,andall
typesareprexedbyanunderscoretopreventnameclasheswithkeywordsoftherulelan-
guage.Edgetypedeclarationsareannotatedwitha[containment=true]annotationifthey
originatefromacontainmentreference.) Afterthismetamodeltransformationtheinstance
graphXMIadheringtotheEcoremodelthusadheringtothejustgeneratedequivalentGr-
Gengraphmodelgetsimported. Furthermore,youcanspecifya.grgcontainingtherulesto
apply(usingfurtherruleandmodelles). SomeexamplesstemmingfromoldGraBaTs/TTC
challenges export XMIwithemit statements,thisis not neededanymorewiththebuilt-in
XMIexport.
-
import
-
add
-
FileSpec
-
Importsthegraphinthespeciedleandaddsittothecurrentgraph(insteadofoverwriting
theoldgraphwiththenewgraph).TheFileSpecisofthesameformatasthelespecication
intheotherimportcommands.
C# Create PDF from images Library to convert Jpeg, png images to
Batch convert PDF documents from multiple image formats, including Jpg image formats into one or multiple PDF file in able to be cropped and pasted to PDF page.
convert pdf into jpg format; convert pdf picture to jpg
VB.NET Create PDF from images Library to convert Jpeg, png images
Components to batch convert PDF documents in Visual Basic multiple image formats into one or multiple PDF file. Crop and paste specified image area to PDF page.
convert pdf to jpg 300 dpi; convert pdf pictures to jpg
20.7 GraphChangeRecordingandReplaying
249
20.7 GraphChangeRecordingandReplaying
Graphchangerecordingandreplayingisavailable
 foroneforpost-problemdebugging,youcanexecuteyourtransformation,andaftera
problemoccuredinspectthechangesthatwereleadingtoit
 fortheotherforensuringpersistenceofchangesastheyhappen,incaseyouareusing
GrGen.NETasanapplication-embeddedin-memorygraph-datebase
-
record
-
Filename
-
.gz
-
start
-
stop
-
Therecordcommandstartsorstopsrecordingofgraphchangestothespeciedle.Ifneither
startnorstoparegiven,recordingtothespeciedleistoggled(i.e. startedifnorecording
totheleisunderwayorstoppediftheleisalreadyrecordedto).Recordingstartswithan
export(cf. 20.6)oftheinstancegraphinGRS(.grs/.grsi)format,afterwardsthecommand
returnsbutallchangestotheinstancegrapharerecordedtotheleuntiltherecordingstop
commandisissued. Furthermorethevaluesgivenintherecordstatements(cf. 17.1)from
thesequencesarewrittentotherecording(thisallowsyoutomarkstates). Ifthe.gzsux
isgiventherecordingissavedzipped. Youmaystartandstoprecordingstodierentlesat
dierenttimes,everylereceivesthegraphchangesandrecordsstatementsoccurringduring
the time of the recording. . Note: : As s a debugging helpa recording does not only contain
graphmanipulationcommands(cf. 20.5)butalsocommentstellingabouttherewritesand
transactioneventswhichoccurred(whoseeectswererecorded).
-
recordflush
-
Flushesthebuersoftherecordingstodisk.Tobecalledtoguaranteepersistenceifyouuse
GrGen.NETasakindofonlinedatabase,recordingthegraphchangeswhilerunningtoa
redolog.
-
replay
-
Filename
-
.gz
-
from
-
Text
-
to
-
Text
-
Thereplaycommandplaysarecordingback:thegraphatthetimetherecordingwasstarted
isrecreated,thenthechangeswhichoccurredarecarriedoutagain,soyouendupwiththe
graphatthetimetherecordingwas stopped. . InsteadofreplayingtheentireGRSleyou
mayrestrictreplayingtopartsofthelebygivingthelinetostartatand/orthelinetostop
at. Linesarespeciedbytheirtextualcontentwhichissearchedinthele. Ifafromlineis
given,alllinesfromlebeginonincludingthislineareskipped,thenreplaystarts. Ifato
lineisgiven,onlythelinesfromthestartingpointon,until-excludingthisoneareexecuted
(i.e.alllinesfrom-includingthisoneuntilleendareskipped).Normallyyoureferencewith
fromandtocommentlinesyouwritewiththerecordstatement(cf. 17.1)inthesequences,
markingrelevantstatesduringatransformationprocess. Anexampleforrecordandreplay
isgivenintests/recordreplay.
VB.NET PDF Image Extract Library: Select, copy, paste PDF images
able to perform image extraction from multiple page adobe PDF Extract multiple types of image from PDF file in Scan high quality image to PDF, tiff and various
.net convert pdf to jpg; pdf to jpg converter
C# PDF Convert to Images SDK: Convert PDF to png, gif images in C#
conversions from PDF document to multiple image forms. can use this sample code to convert PDF file to PDFDocument(inputFilePath); // Get the first page of PDF
change pdf to jpg online; to jpeg
250
GrShellLanguage
20.8 ShellandEnvironmentConguration
-
silence
-
on
-
off
-
Switchesthenewnode/edgecreated/deletedmessageson(default)oro.Switchingthem
oallowsformuchfasterexecutionofscriptscontainingalotofcreationcommands.
-
silence
-
exec
-
on
-
off
-
Duringnon-debugsequenceexecutioneverysecondmatchstatisticsareprintedtotheconsole;
theyallowtoassesstheprogressoflong-runningtransformations.Withthiscommandthey
can be disabled (or r enabled d again). . Switchingthemo  may be of interest t if f own debug
messagesprintedviaemitfromthesequences(orrules)shouldnotbedisturbed.
-
randomseed
-
Number
-
time
-
Setstherandomseedtothegivennumberforreproducibleresultswhenusingthe$-operator-
prexortherandom-match-selector,whereastimesetstherandomseedtothecurrenttime
inms.
-
redirect
-
emit
-
Filename
-
Redirectstheoutputoftheemit-statementsintherulesfromstdouttothegivenle.
-
redirect
-
emit
-
-
-
Redirectstheoutputoftheemit-statementsintherulestostdout(again).
20.9 CompilationConguration
-
new
-
add
-
reference
-
Filename
-
Congures a reference to an n external assembly y Filename e to o be linkedinto the e generated
assemblies,mapstothe-roptionof grgen.exe(cf.2.2.1).
-
new
-
set
-
keepdebug
-
lazynic
-
noinline
-
profile
-
on
-
off
-
C# WPF PDF Viewer SDK to convert and export PDF document to other
Image: Copy, Paste, Cut Image in Page. Link: Edit Create multiple pages Tiff file from PDF document. Convert PDF to image file formats with high quality, support
change pdf to jpg; convert pdf image to jpg image
C# PDF Image Extract Library: Select, copy, paste PDF images in C#
C#.NET extract image from multiple page adobe PDF file Extract various types of image from PDF file, like Get JPG, JPEG and other high quality image files from
changing pdf to jpg file; convert .pdf to .jpg
20.10 ModelandGraphQueries
251
Conguresthecompilationofthegeneratedassembliestokeepthegeneratedlesandtoadd
debugsymbols,or congures thegenerationofthematchers. . The e lattertoeitherexecute
negatives, independents, andconditions only y at the endof matching (normally asap), , or
toneverinlinesubpatterns,ortoincludeprolinginformation. Those agsaremappedto
the-keepandthe-debugoptions,ortothe-lazynic,-noinline,or-profileoptionsof
grgen.exe(cf. 2.2.1).
When proling is s turned d on, the number r of searchsteps carriedout is printedtothe
console after eachsequenceexecution. . Asearchstepisabindingofa a graphelement toa
pattern entity y incase there are at least potentially severalchoices available. . Fetchingan
elementbytypechoosesfromallelements ofthattypeinthe graph,followinganincident
edge chooses fromallincident edges ofthe corresponding node, and matching by storage
accesschoosesfromallelementsinthatstorage,whereasgettingthesourceortargetnode
fromanedgeormappingwithastoragemapjustgrabsthetargetelementfromthesource
element. (Eachbinding g fromachoice countsasonestep,the non-choice-bindingsare not
counted.) Prolingthesearchstepsallowsyoutoassesstheworkneededforatransformation,
tondthehotspotsworthoptimizing.Thelesssearchstepsareneededtondamatchthe
better(wewanttoecientlyndpatterns,wanttominimizetheamountofsearchneeded
todoso).
The agsareappliedwhentheactionsaregeneratedanewbecausethemodelorruleles
changed.Theyarenotwhenyoujustswitchthemintheshellscript.It’syourresponsibility
todeletetheoldgenerateddlls whenyouchange those options (by switchingthem,orby
introducingthemdierentlyfromthecompileroptionsusedtogeneratethedlls)!
-
new
-
set
-
statistics
-
Filename
-
Congures the compilation n of the generated assemblies s touse the statistics s le e specied,
yieldingpatternmatchersadaptedtotheclassofgraphsdescribedinthatle. Mapstothe
-statisticsoptionofgrgen.exe(cf. 2.2.1,andsee20.14onhowtogetsuchstatistics).
20.10 ModelandGraphQueries
-
show
-
num
-
nodes

-
only
-
NodeType
-
edges

-
only
-
EdgeType
-
Gets the persistent names andthetypesofallthenodes/edges ofthecurrent graph. . Ifa
nodetypeoredgetypeissupplied,onlyelementscompatibletothistypeareconsidered. The
only keywordexcludessubtypes. . Nodes/edgeswithoutpersistentnames s areshownwitha
pseudo-name.Ifthecommandisspeciedwithnum,onlythenumberofnodes/edgeswillbe
displayed.
-
show
-
node
-
edge
-
types
-
C# Create PDF Library SDK to convert PDF from other file formats
Gratis control for creating PDF from multiple image formats such as tiff, jpg, png, gif, bmp Create and save editable PDF with a blank page, bookmarks, links
best pdf to jpg converter; convert from pdf to jpg
VB.NET PDF Convert to Images SDK: Convert PDF to png, gif images
Convert PDF documents to multiple image formats, including Jpg VB.NET programming sample code to convert PDF file to inputFilePath) ' Get the first page of PDF
change pdf file to jpg online; convert pdf file into jpg format
252
GrShellLanguage
Getsthenode/edgetypesofthecurrentgraphmodel.
-
show
-
node
-
super
-
sub
-
types
-
NodeType
-
edge
-
super
-
sub
-
types
-
EdgeType
-
Getstheinherited/descendanttypesofNodeType/EdgeType.
-
show
-
node
-
attributes

-
only
-
NodeType
-
edge
-
attributes

-
only
-
EdgeType
-
Gets the availablenode/edgeattribute types. . If f NodeType/EdgeType e is s supplied,onlyat-
tributesdenedinNodeType/EdgeType arediplayed. . Theonlykeywordexcludesinherited
attributes.
NOTE(51)
Theshow nodes/edges attributes... . commandcoverstypesandinherited d types. . This
isincontrasttotheothershow... commandswheretypesandsubtypesarespeciedorthe
directioninthetypehierarchyisspeciedexplicitly,respectively.
-
show
-
node
-
Node
-
edge
-
Edge
-
Getstheattributetypesandvaluesofaspecicgraphelement.
-
show
-
GraphElement
-
.
-
AttributeName
-
Displaysthevalueofthespeciedattribute.
-
node
-
type
-
Node
-
is
-
Node
-
edge
-
type
-
Edge
-
is
-
Edge
-
Getstheinformationwhethertherstelementistype-compatibletothesecondelement.
20.11 ValidationCommands
253
20.11 ValidationCommands
GrGen.NEToerstwodierentgraphvalidationmechanisms,therstchecksagainstthe
connectionassertions speciedinthemodel,thesecondchecks againstanarbitrarygraph
rewritesequencecontainingarbitrarytestsandrules.
-
validate
-
exitonfailure
-
strict
-
only
-
specified
-
Validatesifthecurrentworkinggraphfulllstheconnectionassertionsspeciedinthecor-
respondinggraphmodel(cf. 4.2.2). . Validatewithoutthestrictmodierchecksthemulti-
plicitiesoftheconnectionsitndsinthehostgraph,itignoresnode-edge-nodeconnections
whichareavailableinthehost graphbuthavenot beenspeciedinthemodel. . Thestrict
mode additionally requires that allthe edges availablein the host graph must have been
speciedinthemodel.Thisrequirementistooharshformodelswhereonlycertainpartsare
consideredcriticalenoughtobecheckedor mightbeatoobigstepintighteningthelevel
ofstructuralcheckinginanalready existinglarge model. . Sosome e formofselectivestrict
checkingis supported: : Thestrict t onlyspecied moderequiresstrictmatching(i.e. . thatall
edgesarecovered) onlyoftheedgesforwhichconnectionassertionshavebeenspeciedin
themodel.
-
validate
-
exitonfailure
-
exec
-
xgrs
-
GRS
-
Validatesifthecurrentworkinggraphsatisesthegraphrewritesequencegiven.Beforethe
graphrewritesequenceisexecuted,theinstancegraphgetscloned;thesequenceoperateson
theclone,allowingyoutochangethegraphasyouwantto,without in uenceonthehost
graph.Validationfailsithesequencefails.Thisgivesarathercostlybutextremely exible
andpowerfulmechanismtospecifygraphconstraints. TheGrShellisexitedwithanerror
codeifexitonfailureisspeciedandthevalidationfails.
254
GrShellLanguage
EXAMPLE(128)
WereuseasimpliedversionoftheroadmapmodelfromChapter4:
1
model Map;
2
3
nodeclasscity;
4
nodeclassmetropolis;
5
6
edgeclassstreet;
7
edgeclasshighway
8
connectmetropolis[+]-->metropolis[+];
Thenodeconstraintonhighwayrequiresallthemetropolisestobeconnectedbyhighways.
Nowhavealookatthefollowinggraph:
Thisgraphisvalidbutnotstrictvalid.
1
>validate
2
Thegraphis valid.
3
>validatestrictonlyspecified
4
Thegraphis NOTvalid:
5
CAE:city "Eppstein" --highway"A3"-->metropolis "Frankfurt"notspecified
6
>validatestrict
7
Thegraphis NOTvalid:
8
CAE:city "Eppstein" --highway"A3"-->metropolis "Frankfurt"notspecified
9
CAE:metropolis"Karlsruhe" --street "trail" -->metropolis"Frankfurt" notspecified
10
>
20.12 SequenceExecutionandProles
255
20.12 SequenceExecutionandProles
Anactiondenotesagraphrewriterule.
-
show
-
profile
-
Actionname
-
Showstheprolefortheactionspeciedbyitsname,orforallrulesandtestsintheruleset.
GraphRewriteSequence
-
RewriteSequenceDenition
-
Thiscommandallowstodeneanamedsequenceatruntime,forRewriteSequenceDefinition
havealookhere18.1intheruleapplicationcontrollanguagechapter. Especiallyitallowsto
replaceanoldsequencedenition,butonlyifthesignatureisidentical.Compiledsequences
denedinrulelescan’tbereplaced.Thedenedsequencecanthenbeusedfromfollowing
graphrewritesequences(orfollowingsequencedenitions)intheshell.
EXAMPLE(129)
1
# asequencedefinition(ofaninterpretedsequence)isonly available
2
#afteritwasregisteredthe firsttime
3
#but itcan getoverwrittenwithasequenceofthesamesignature
4
#->(selformutually) recursivesequencesmustbeconstructedwithemptybodyfirst
5
defchain(first:A):(last:A){true}
6
defchain(first:A):(last:A){if{(next:A)=chainPiece(first); (last)=chain(next);last=first} }
GraphRewriteSequence
-
exec
-
xgrs
-
SimpleRewriteSequence
-
Thisexecutes thegraphrewritesequenceSimpleRewriteSequence. . SeeChapter9forgraph
rewritesequences.Additionallytothevariableassignmentinrule-embeddedgraphrewritese-
quences,youarealsoabletoassignpersistentnamestoparametersviaVariable = (Text).
Graph elements s returnedby rules can n be assignedtovariables s using (Parameters) ) =
Action. Thedesiredvariableidentiers s havetobelistedinParameters. . Graphelements
requiredbyrulesmustbeprovidedusingAction (Parameters),whereParametersisalist
ofvariableidentiers. ForundenedvariablesseeSection5.2,Parameters.
20.13 Backend,Graph,andActionsSelection
Backend
GrGen.NET is built to support multiple e backends s implementing the model and action
interfaces of f libGr. . This s is roughly comparable to the dierent storage engines MySQL
oers. Currently y only one backend is available, , the e libGr search plan backend, or short
LGSPBackend.
256
GrShellLanguage
-
show
-
backend
-
Listalltheparameterssupportedbythecurrentlyselectedbackend. Theparameterscanbe
providedtotheselect backendcommand.
-
select
-
backend
-
Filename
-
:
-
Parameters
-
Selectsabackendthathandles graphandrulerepresentation. . Filename e hastobea.NET
assembly(e.g.lgspBackend.dll).Comma-separatedparameterscanbesuppliedoptionally;
ifso,thebackendmustsupporttheseparameters. BydefaulttheLGSPBackendisused.
Graph
-
select
-
graph
-
Graph
-
Selectsthecurrentworkinggraph. Thisgraphactsashostgraphforgraphrewritesequences
(see alsoSections1.5and20.12). . Thoughyoucandene e multiple graphs,only onegraph
canbetheactive\workinggraph".
-
show
-
graphs
-
Displaysalistofcurrentlyavailablegraphs.
-
delete
-
graph
-
Graph
-
DeletesthegraphGraphfromthebackendstorage.
-
custom
-
graph
-
SpacedParameters
-
Executesacommandspecictothecurrentbackend.IfSpacedParameters isomitted,alist
ofavailablecommandswillbedisplayed(fortheLGSPbackendseeSections20.14).
Actions
-
select
-
actions
-
Filename
-
Selectsaruleset. Filename e caneitherbea.NETassembly(e.g.\rules.dll")orasourcele
(\rules.cs"). Onlyonerulesetcanbeloadedsimultaneously.
-
show
-
actions
-
Listsalltherulesoftheloadedruleset,theirparameters,andtheirreturnvalues.Rulescan
returnasetofgraphelements.
Documents you may be interested
Documents you may be interested