Commit 8d44396d authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

PDF text code&gid support

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58618 954022d7-b5bf-4e40-9824-e11837661b57
parent 4c32d548
...@@ -747,6 +747,8 @@ function CCommandsType() ...@@ -747,6 +747,8 @@ function CCommandsType()
// text // text
this.ctDrawText = 80; this.ctDrawText = 80;
this.ctDrawTextEx = 81; this.ctDrawTextEx = 81;
this.ctDrawTextCode = 82;
this.ctDrawTextCodeGid = 83;
// pathcommands // pathcommands
this.ctPathCommandMoveTo = 91; this.ctPathCommandMoveTo = 91;
...@@ -1278,6 +1280,20 @@ CMetafile.prototype = ...@@ -1278,6 +1280,20 @@ CMetafile.prototype =
this.Memory.WriteString(text); this.Memory.WriteString(text);
this.Memory.WriteDouble(x); this.Memory.WriteDouble(x);
this.Memory.WriteDouble(y); this.Memory.WriteDouble(y);
},
FillTextCode : function(x,y,code)
{
this.Memory.WriteByte(CommandType.ctDrawTextCode);
this.Memory.WriteLong(code);
this.Memory.WriteDouble(x);
this.Memory.WriteDouble(y);
},
tg : function(gid,x,y)
{
this.Memory.WriteByte(CommandType.ctDrawTextCodeGid);
this.Memory.WriteLong(gid);
this.Memory.WriteDouble(x);
this.Memory.WriteDouble(y);
}, },
charspace : function(space) charspace : function(space)
{ {
...@@ -1751,6 +1767,16 @@ CDocumentRenderer.prototype = ...@@ -1751,6 +1767,16 @@ CDocumentRenderer.prototype =
{ {
if (0 != this.m_lPagesCount) if (0 != this.m_lPagesCount)
this.m_arrayPages[this.m_lPagesCount - 1].FillText(x,y,text); this.m_arrayPages[this.m_lPagesCount - 1].FillText(x,y,text);
},
FillTextCode : function(x,y,text,cropX,cropW)
{
if (0 != this.m_lPagesCount)
this.m_arrayPages[this.m_lPagesCount - 1].FillTextCode(x,y,text);
},
tg : function(gid,x,y)
{
if (0 != this.m_lPagesCount)
this.m_arrayPages[this.m_lPagesCount - 1].tg(gid,x,y);
}, },
FillText2 : function(x,y,text) FillText2 : function(x,y,text)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment