display pdf in iframe mvc : Convert pdf into webpage control SDK platform web page wpf azure web browser ezdxf3-part1353

ezdxfDocumentation,Release0.7.6
TableEntryClasses
Layer
classLayer
Layerdefinition,definesattributevaluesforentitiesonthislayerfortheirattributessettoBYLAYER.
Layer.dxf
TheDXFattributes namespace, access DXFattributesbythisattribute, likeobject.dxf.linetype e =
’DASHED’.Justthedxfattributeisreadonly,theDXFattributesareread-andwriteable.(readonly)
DXFAttr
Ver-
sion
Description
handle
R12
DXFhandle(featureforexperts)
name
R12
layername(str)
flags
R12
layerflags(featureforexperts)
color
R12
layercolor,butuseLayer.get_color(),becausecolorisnegativeforlayer
statusoff(int)
linetype
R12
nameoflinetype(str)
plot
R13
plotflag(int),1forplotlayer(defaultvalue),0fordon’tplotlayer
line_weight
R13
lineweightenumvalue(int)
plot_style_name
R13
handletoPlotStyleName(featureforexperts)
Layer.is_frozen()
Layer.freeze()
Layer.thaw()
Layer.is_locked()
Layer.lock()
Locklayer,entitiesonthislayerarenoteditable-justimportantinCADapplications.
Layer.unlock()
unlocklayer,entitiesonthislayerareeditable-justimportantinCADapplications.
Layer.is_off()
Layer.is_on()
Layer.on()
Switchlayeron(visible).
Layer.off()
Switchlayeroff(invisible).
Layer.get_color()
Getlayercolor,preferredmethodforgettingthelayercolor,becausecolorisnegativeforlayerstatusoff.
Layer.set_color(color)
Setlayercolortocolor,preferredmethodforsettingthelayercolor,becausecolorisnegativeforlayerstatus
off.
Style
classStyle
Definesatextstyle,canbeusedbyentities:Text,AttribandAttdef
2.3. Reference
27
Convert pdf into webpage - Convert PDF to html files in C#.net, ASP.NET MVC, WinForms, WPF application
How to Convert PDF to HTML Webpage with C# PDF Conversion SDK
embed pdf into webpage; pdf to html converters
Convert pdf into webpage - VB.NET PDF Convert to HTML SDK: Convert PDF to html files in vb.net, ASP.NET MVC, WinForms, WPF application
PDF to HTML Webpage Converter SDK for VB.NET PDF to HTML Conversion
how to convert pdf file to html document; convert pdf to website html
ezdxfDocumentation,Release0.7.6
Style.dxf
TheDXFattributesnamespace.
DXFAttr
Description
handle
DXFhandle(featureforexperts)
name
stylename(str)
flags
layerflags(featureforexperts)
height
fixedheightindrawingunits,0fornotfixed(float)
width
widthfactor(float),defaultis1
oblique
obliqueangleindegrees,0isvertical(float)
text_generation_flags
textgenerationsflags(int)
• 2=textisbackward(mirroredinX)
• 4=textisupsidedown(mirroredinY)
last_height
lastheightusedindrawingunits(float)
font
primaryfontfilename(str)
bigfont
bigfontname,blankifnone(str)
Linetype
classLinetype
Definesalinetype.
Linetype.dxf
TheDXFattributesnamespace.
DXFAttr
Description
name
linetypename(str)
description
linetypedescription(str)
length
totalpatternlengthindrawingunits(float)
items
numberoflinetypeelements(int)
DimStyle
classDimStyle
Definesadimensionstyle.
DimStyle.dxf
TheDXFattributesnamespace.
TODODXFAttrforDimStyleclass
Viewport
classViewport
Definesaviewporttothemodelspace.
Viewport.dxf
TheDXFattributesnamespace.
TODODXFAttrfortheViewportclass
28
Chapter2. Contents
C# Word - Convert Word to HTML in C#.NET
VB.NET How-to, VB.NET PDF, VB.NET Word it extremely easy for C# developers to convert and transform Internet by converting Word document file into HTML webpage.
convert pdf form to html; how to change pdf to html
C# powerpoint - Convert PowerPoint to HTML in C#.NET
also makes PowerPoint document visible and searchable on the Internet by converting PowerPoint document file into HTML webpage. C#: Convert PowerPoint Document
convert pdf into html code; convert pdf to html email
ezdxfDocumentation,Release0.7.6
View
classView
Definesaview.
View.dxf
TheDXFattributesnamespace.
TODODXFAttrfortheViewclass
AppID
classAppID
DefinesanAppID.
AppID.dxf
TheDXFattributesnamespace.
TODODXFAttrfortheAppIDclass
UCS
classUCS
Definesanusercoordinatesystem(UCS).
UCS.dxf
TheDXFattributesnamespace.
TODODXFAttrfortheUCSclass
BlockRecord
classBlockRecord
DefinesaBlockRecord,existjustinDXFversionR13andlater.
BlockRecord.dxf
TheDXFattributesnamespace.
TODODXFAttrfortheBlockRecordclass
2.3.3 Layouts
Layout
ALayoutrepresentsandmanagesdrawingentities,therearethreedifferentlayoutobjects:
• Modelspaceisthecommonworkingspace,containingbasicdrawingentities.
• Paperspacesarearrangementsofobjectsforprintingandplotting,thislayoutscontainsbasicdrawingentities
andviewportstothemodel-space.
• BlockLayoutworksonanassociatedBlock,Blocksarecollectionsofdrawingentitiesforreusingbyblock
references.
classLayout
2.3. Reference
29
VB.NET PDF Convert to Tiff SDK: Convert PDF to tiff images in vb.
Able to convert PDF to Tiff in .NET WinForms application and ASP.NET webpage. Convert PDF file to Tiff and jpeg in ASPX webpage online.
best pdf to html converter online; convert pdf form to web form
Online Convert PDF to HTML5 files. Best free online PDF html
blue button or drag-and-drop your pdf file into the drop image solution, which is designed to help .NET developers convert PDF to HTML webpage using simple
to html; convert pdf to html format
ezdxfDocumentation,Release0.7.6
Accessexistingentities
Layout.__iter__()
Iterateoveralldrawingentitiesinthislayout.
Layout.__contains__(entity)
Testifthelayoutcontainsthedrawingelemententity.
Layout.query(query=’*’)
GetincludedDXFentitiesmatchingtheEntityQueryStringquery.ReturnsasequenceoftypeEntityQuery.
Createnewentities
Layout.add_point(location,dxfattribs=None)
AddaPointelementatlocation.
Layout.add_line(start,end,dxfattribs=None)
AddaLineelement,startingat2D/3Dpointstartandendingatthe2D/3Dpointend.
Layout.add_circle(center,radius,dxfattribs=None)
AddaCircleelement,centeris2D/3Dpoint,radiusindrawingunits.
Layout.add_ellipse(center,major_axis=(1,0,0),ratio=1,start_param=0,end_param=6.283185307,
dxfattribs=None)
AddanEllipseelement,centeris2D/3Dpoint,major_axisasvector,ratioistheratioofminoraxistomajor
axis,start_paramandend_paramdefinesstartandendpointoftheellipse,afullellipsegoesfrom0to2*pi.
Theellipsegoesfromstarttoendparamincounterclockwisedirection.
Layout.add_arc(center,radius,start_angle,end_angle,dxfattribs=None)
AddanArcelement,centeris2D/3Dpoint,radiusindrawingunits,start_angleandend_angleindegrees.The
arcgoesfromstart_angletoend_angleincounterclockwisedirection.
Layout.add_solid(points,dxfattribs=None)
AddaSolidelement,pointsislistof3or42D/3Dpoints.
Layout.add_trace(points,dxfattribs=None)
AddaTraceelement,pointsislistof3or42D/3Dpoints.
Layout.add_3dface(points,dxfattribs=None)
Adda3DFaceelement,pointsislistof3or42D/3Dpoints.
Layout.add_text(text,dxfattribs=None)
AddaTextelement,textisastring,seealsoStyle.
Layout.add_blockref(name,insert,dxfattribs=None)
AddanInsertelement,nameistheblockname,insertisa2D/3Dpoint.
Layout.add_auto_blockref(name,insert,values,dxfattribs=None)
AddanInsertelement,nameistheblockname,insertisa2D/3Dpoint.AddAttdef,definedintheblock
definition, automaticallyasAttribtotheblockreference, andsettextofAttribvaluesisadictwith
key=tag,value=textvalues.TheAttribelementsareplacedrelativetotheinsertpoint=blockbasepoint.
Layout.add_attrib(tag,text,insert,dxfattribs=None)
AddanAttribelement,tagistheattrib-tag,textistheattribcontent.
Layout.add_polyline2d(points,dxfattribs=None)
AddaPolylineelement,pointsislistof2Dpoints.
Layout.add_polyline3d(points,dxfattribs=None)
AddaPolylineelement,pointsislistof3Dpoints.
30
Chapter2. Contents
VB.NET PDF insert image library: insert images into PDF in vb.net
Enable users to insert images to PDF file in ASPX webpage project. Import graphic picture, digital photo, signature and logo into PDF document.
pdf to html; convert pdf to html5
VB.NET PDF File Split Library: Split, seperate PDF into multiple
Split PDF file into two or multiple files in ASP.NET webpage online. Support to break a large PDF file into smaller files in .NET WinForms.
convert pdf to html link; converting pdf to html code
ezdxfDocumentation,Release0.7.6
Layout.add_polymesh(size=(3,3),dxfattribs=None)
AddaPolymeshelement,sizeisa2-tuple(mcount,ncount).Apolymeshisagridofmcountxncountvertices
andeveryvertexhasitsownxyz-coordinates.
Layout.add_polyface(dxfattribs=None)
AddaPolyfaceelement.
Layout.add_lwpolyline(points,dxfattribs=None)
Adda2Dpolyline,pointsisalistof2Dpoints. ALWPolylineisdefinedasasinglegraphicentityand
consumelessdiskspaceandmemory.(requiresDXFversionAC1015orlater)
Layout.add_mtext(text,dxfattribs=None)
AddaMTextelement, whichisamultilinetextelementwithautomatictextwrappingatboundaries. . The
char_heightistheinitialcharacterheightindrawingunits,widthisthewidthofthetextboundaryindrawing
units.(requiresDXFversionAC1015orlater)
Layout.add_shape(name,insert=(0,0,0),size=1.0,dxfattribs=None)
AddaShapereferencetoaexternalstoredshape.
Layout.add_ray(start,unit_vector,dxfattribs=None)
AddaRaythatstartsatapointandcontinuestoinfinity(constructionline).(requiresDXFversionAC1015or
later)
Layout.add_xline(start,unit_vector,dxfattribs=None)
AddaninfinityXLine(constructionline).(requiresDXFversionAC1015orlater)
Layout.add_spline(fit_points=None,dxfattribs=None)
AddaSpline,fit_pointshastobealist(containerorgenerator)of(x,y,z)tuples. (requiresDXFversion
AC1015orlater)
Layout.add_body(acis_data=”“,dxfattribs=None)
AddaBodyentity,acis_datahastobealist(containerorgenerator)oftextlineswithoutlineendings.(requires
DXFversionAC1015orlater)
Layout.add_region(acis_data=”“,dxfattribs=None)
AddaRegionentity,acis_datahastobealist(containerorgenerator)oftextlineswithoutlineendings.
(requiresDXFversionAC1015orlater)
Layout.add_3dsolid(acis_data=”“,dxfattribs=None)
Adda3DSolidentity,acis_datahastobealist(containerorgenerator)oftextlineswithoutlineendings.
(requiresDXFversionAC1015orlater)
Layout.add_hatch(color=7,dxfattribs=None)
AddaHatchentity,colorasACI(AutoCADColorIndex),defaultis7(black/white). (requiresDXFversion
AC1015orlater)
Layout.add_image(image_def,insert,size_in_units,rotation=0,dxfattribs=None)
AddanImageentity,insertistheinsertionpointas(x,y[,z])tuple,size_in_unitsistheimagesizeas(x,y)
tupleindrawingunits,image_defistherequiredImageDef,rotationistherotationanglearoundthez-axisin
degrees. CreateImageDefbytheDrawingfactoryfunctionadd_image_def(),seeTutorialforImage
andImageDef.(requiresDXFversionAC1015orlater)
Layout.add_underlay(underlay_def,insert=(0,0,0),scale=(1,1,1),rotation=0,dxfattribs=None)
AddanUnderlayentity,insertistheinsertionpointas(x,y[,z])tuple,scaleistheunderlayscalingfactoras
(x,y,z)tuple,underlay_defistherequiredUnderlayDefinition,rotationistherotationanglearoundthe
z-axisindegrees. CreateUnderlayDefbytheDrawingfactoryfunctionadd_underlay_def(),see
TutorialforUnderlayandUnderlayDefinition.(requiresDXFversionAC1015orlater)
2.3. Reference
31
VB.NET PDF Convert to Word SDK: Convert PDF to Word library in vb.
to Word in both .NET WinForms and ASP.NET webpage. In order to convert PDF document to Word file using VB you have to integrate following assemblies into your VB
convert pdf to web page; convert fillable pdf to html
C# HTML5 PDF Viewer SDK to view, annotate, create and convert PDF
edit PDF document page in ASPX webpage, set and edit RasterEdge provide HTML5 PDF Viewer and Editor to help C# users to view, annotate, convert and edit
add pdf to website; convert pdf to web pages
ezdxfDocumentation,Release0.7.6
Deleteentities
Layout.delete_entity(entity)
Deleteentityfromlayoutanddrawingdatabase.
Layout.delete_all_entities()
Deleteallentitiesfromlayoutanddrawingdatabase.
ModelSpace
classModelspace
AtthistimetheModelspaceclassistheLayoutclass.
PaperSpace
classPaperspace
AtthistimethePaperspaceclassistheLayoutclass.
BlockLayout
classBlockLayout(Layout)
BlockLayout.name
Thenameoftheassociatedblockelement.(read/write)
BlockLayout.block
GettheassociatedDXFBLOCKentity.
BlockLayout.add_attdef(tag,insert=(0,0),dxfattribs=None)
AddanAttdefelement, tagistheattribute-tag, insertisthe2D/3DinsertionpointoftheAttribute. . Set
positionandalignmentbytheidiom:
myblock.add_attdef('NAME').set_pos((23), , align='MIDDLE_CENTER')
BlockLayout.attdefs()
IteratorforincludedAttdefentities.
2.3.4 Entities
CommonBaseClass
classGraphicEntity
Commonbaseclassforallgraphicentities.
GraphicEntity.dxf
(readonly)TheDXFattributesnamespace,accessDXFattributesbythisattribute,likeentity.dxf.layer
= ’MyLayer’.Justthedxfattributeisreadonly,theDXFattributesareread-andwriteable.
GraphicEntity.dxftype
(readonly)GettheDXFtypestring,likeLINEforthelineentity.
GraphicEntity.handle
(readonly)Gettheentityhandle.(featureforexperts)
32
Chapter2. Contents
ezdxfDocumentation,Release0.7.6
GraphicEntity.drawing
(readonly)Gettheassociateddrawing.
GraphicEntity.dxffactory
(readonly)GettheassociatedDXFfactory.(featureforexperts)
GraphicEntity.rgb
(read/write)Get/SettruecolorasRGB-Tuple.ThisattributedoesnotexistinDXFAC1009(R12)entities,the
attributeexistsinDXFAC1015entitiesbutdoesnotwork(raisesValueError),requiresatleastDXFVersion
AC1018(AutoCADR2004).usage:entity.rgb = (30, 40, 50);
GraphicEntity.transparency
(read/write)Get/Settransparencyvalueasfloat. ThisattributedoesnotexistinDXFAC1009(R12)entities,
theattributeexistsinDXFAC1015entitiesbutdoesnotwork(raisesValueError),requiresatleastDXF
VersionAC1018(AutoCADR2004). Valuerange0.0to1.0where0.0meansentityisopaqueand1.0means
entityis100%transparent(invisible).Thisistherecommendmethodtoget/settransparencyvalues,whenever
possibledonotusetheDXFlowlevelattributeentity.dxf.transparency
GraphicEntity.get_dxf_attrib(key,default=ValueError)
GetDXFattributekey,returnsdefaultifkeydoesn’texist,orraiseValueErrorifdefaultisValueError
andnoDXFdefaultvalueisdefined:
layer entity.get_dxf_attrib("layer")
# same e as
layer entity.dxf.layer
GraphicEntity.set_dxf_attrib(key,value)
SetDXFattributekeytovalue:
entity.set_dxf_attrib("layer""MyLayer")
# same e as
entity.dxf.layer "MyLayer"
GraphicEntity.del_dxf_attrib(key)
Delete/removeDXFattributekey.RaisesAttributeErrorifkeyisn’tsupported.
GraphicEntity.dxf_attrib_exists(key)
ReturnsTrueifDXFattribkeyreallyexistselseFalse.RaisesAttributeErrorifkeyisn’tsupported
GraphicEntity.supported_dxf_attrib(key)
ReturnsTrueifDXFattribkeyissupportedbythisentityelseFalse.Doesnotgrantthatattribkeyreallyexists.
GraphicEntity.valid_dxf_attrib_names(key)
ReturnsalistofsupportedDXFattributenames.
CommonDXFattributesforDXFR12
AccessDXFattributesbythedxfattributeofanentity,likeobject.dxf.layer = ’MyLayer’.
2.3. Reference
33
ezdxfDocumentation,Release0.7.6
DX-
FAttr
Description
handle
DXFhandle(featureforexperts)
layer
layernameasstring;default=0
line-
type
linetypeasstring,specialnamesBYLAYER,BYBLOCK;default=BYLAYER
color
dxfcolorindex,0...BYBLOCK,256...BYLAYER;default=256
pa-
perspace
0forentityresidesinmodel-space,1forpaper-space,thisattributeissetautomaticallybyaddingan
entitytoalayout(featureforexperts);default=0
extru-
sion
extrusiondirectionas3Dpoint;default=(0,0,1)
CommonDXFattributesforDXFR13orlater
AccessDXFattributesbythedxfattributeofanentity,likeobject.dxf.layer = ’MyLayer’.
DXFAttr
Description
handle
DXFhandle(featureforexperts)
owner
handletoowner,it’saBLOCK_RECORDentry(featureforexperts)
layer
layernameasstring;default=0
linetype
linetypeasstring,specialnamesBYLAYER,BYBLOCK;default=BYLAYER
color
dxfcolorindex,0...BYBLOCK,256...BYLAYER;default=256
lineweight
lineweightenumvalue.Storedandmovedaroundasa16-bitinteger.
ltscale
linetypescaleasfloat;default=1.0
invisible
1forinvisible,0forvisible;default=0
pa-
perspace
0forentityresidesinmodel-space,1forpaper-space,thisattributeissetautomaticallybyaddingan
entitytoalayout(featureforexperts);default=0
extrusion
extrusiondirectionas3Dpoint;default=(0,0,1)
thickness
entitythicknessasfloat;default=0
true_color
truecolorvalueasint0x00RRGGBB,requiresDXFVersionAC1018(AutoCADR2004)
color_name
colornameasstring,requiresDXFVersionAC1018(AutoCADR2004)
trans-
parency
transparencyvalueasint,0x020000TT0x00=100%transparent/0xFF=opaque,requiresDXF
VersionAC1018(AutoCADR2004)
shadow_mode
asint;0=Castsandreceivesshadows,1=Castsshadows,2=Receivesshadows,3=Ignores
shadows;requiresDXFVersionAC1021(AutoCADR2007)
Line
classLine(GraphicEntity)
Alineformstarttoend,dxftypeisLINE.Createlinesinlayoutsandblocksbyfactoryfunctionadd_line().
DXFAttr
Version
Description
start
R12
startpointofline(2D/3DPoint)
end
R12
endpointofline(2D/3DPoint)
Point
classPoint(GraphicEntity)
A point t at t location pointdxftype is s POINT. Create e points in layouts and blocks s by factory function
add_point().
DXFAttr
Version
Description
location
R12
locationofthepoint(2D/3DPoint)
34
Chapter2. Contents
ezdxfDocumentation,Release0.7.6
Circle
classCircle(GraphicEntity)
Acircleatlocationcenter andradiusdxftypeis CIRCLE.Createcircles inlayouts andblocksbyfactory
functionadd_circle().
DXFAttr
Version
Description
center
R12
centerpointofcircle(2D/3DPoint)
radius
R12
radiusofcircle(float)
Arc
classArc(GraphicEntity)
Anarc atlocation center and radius from start_angle toend_angledxftype is ARC. The arc goes from
start_angletoend_angleincounterclockwisedirection. Createarcsinlayoutsandblocksbyfactoryfunc-
tionadd_arc().
DXFAttr
Version
Description
center
R12
centerpointofarc(2D/3DPoint)
radius
R12
radiusofarc(float)
start_angle
R12
startangleindegrees(float)
end_angle
R12
endangleindegrees(float)
Ellipse
classEllipse(GraphicEntity)
IntroducedinAutoCADR13(DXFversionAC1012),dxftypeisELLIPSE.
Anellipsewithcenterpointatlocationcenterandamajoraxismajor_axisasvector.ratioistheratioofminor
axistomajoraxis.start_paramandend_paramdefinesstartandendpointoftheellipse,afullellipsegoesfrom
0to2*pi.Theellipsegoesfromstarttoendparamincounterclockwisedirection.Createellipsesinlayoutsand
blocksbyfactoryfunctionadd_ellipse().
DXFAttr
Version
Description
center
R13
centerpointofcircle(2D/3DPoint)
major_axis
R13
Endpointofmajoraxis,relativetothecenter(tupleoffloat)
ratio
R13
Ratioofminoraxistomajoraxis(float)
start_param
R13
Startparameter(thisvalueis0.0forafullellipse)(float)
end_param
R13
Endparameter(thisvalueis2*piforafullellipse)(float)
Text
classText(GraphicEntity)
Asimpleonelinetext,dxftypeisTEXT.Textheightisindrawingunitsanddefaultsto1,butitdependsonthe
renderingsoftwarewhatyoureallyget. Widthisascalingfactor,butitisnotdefinedwhatisscaled(Iassume
thetextheight),butitalsodependsontherenderingsoftwarewhatyouget. ThisisonereasonwhyDXFand
alsoDWGarenotreliableforexchangingexactstyling,theyarejustreliableforexchangingexactgeometry.
Createtextinlayoutsandblocksbyfactoryfunctionadd_text().
2.3. Reference
35
ezdxfDocumentation,Release0.7.6
DXFAttr
Version
Description
text
R12
thecontenttextitself(str)
insert
R12
firstalignmentpointoftext(2D/3D
Point), relevant forthe e adjustments
LEFT,ALIGNandFIT.
align_point
R12
second alignment point of text
(2D/3D Point), , if f the justification
is anything g other r than n LEFT, the
secondalignmentpointspecifyalso
thefirstalignmentpoint:(orjustthe
second alignment point for ALIGN
andFIT)
height
R12
text height in drawingunits (float);
default=1
rotation
R12
text rotation in degrees (float); ; de-
fault=0
oblique
R12
textobliqueangle(float);default=0
style
R12
text style
name
(str);
de-
fault=‘‘STANDARD‘‘
width
R12
widthscalefactor(float);default=1
halign
R12
horizontal alignment flag (int),
use
Text.set_pos()
and
Text.get_align();default=0
valign
R12
vertical alignment flag
(int),
use
Text.set_pos()
and
Text.get_align();default=0
text_generation_flag
R12
textgenerationflags(int)
• 2=textisbackward(mir-
roredinX)
• 4 =text is s upside down
(mirroredinY)
Text.set_pos(p1,p2=None,align=None)
Parameters
• p1–firstalignmentpointas(x,y[,z])-tuple
• p2–secondalignmentpointas(x,y[,z])-tuple,requiredforALIGNEDandFITelseig-
nored
• align(str)–newalignment,Noneforpreserveexistingalignment.
Settextalignment,validpositionsare:
Vert/Horiz
Left
Center
Right
Top
TOP_LEFT
TOP_CENTER
TOP_RIGHT
Middle
MIDDLE_LEFT
MIDDLE_CENTER
MIDDLE_RIGHT
Bottom
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
Baseline
LEFT
CENTER
RIGHT
Specialalignmentsare,ALIGNEDandFIT,theyrequireasecondalignmentpoint,thetextisjustifiedwiththe
verticalalignmentBaselineonthevirtuallinebetweenthesetwopoints.
36
Chapter2. Contents
Documents you may be interested
Documents you may be interested