- Posts: 97
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
how to move the written text
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
10 years 1 month ago #10250
by ankur123987
how to move the written text was created by ankur123987
Hi radaeepdf team,
actually i write this question in different thread as i want to move the written text . its different from edittext .
i am using following code for write the text
PageContent content = new PageContent();
content.Create();//create content, do not forget.
content.GSSave();
Matrix mat = new Matrix( 1, 1, 100, 500 );
content.GSSetMatrix(mat);
mat.Destroy();
Page page = m_doc.GetPage(0);
Document.DocFont dfont = m_doc.NewFontCID("DroidSansFallback", 1 |
;//bold and embed in horizontal writing
ResFont rfont = page.AddResFont(dfont);
content.TextBegin();
content.TextSetFont(rfont, 20);//set font and size
content.SetFillColor(0xff0000);
content.SetStrokeColor(0x10);
content.TextSetCharSpace(0);
content.TextSetWordSpace(0.3f);
content.TextSetLeading(20);
content.TextSetRenderMode(2);//fill and stroke
content.TextSetHScale(120);//set horizontal scale
content.DrawText("RadaeePDF\rTest!");
content.TextEnd();
content.GSRestore();
//add content to page
page.AddContent(content, true);
content.Destroy();
page.Close();
can i move this text at pdf ?
please help
actually i write this question in different thread as i want to move the written text . its different from edittext .
i am using following code for write the text
PageContent content = new PageContent();
content.Create();//create content, do not forget.
content.GSSave();
Matrix mat = new Matrix( 1, 1, 100, 500 );
content.GSSetMatrix(mat);
mat.Destroy();
Page page = m_doc.GetPage(0);
Document.DocFont dfont = m_doc.NewFontCID("DroidSansFallback", 1 |
ResFont rfont = page.AddResFont(dfont);
content.TextBegin();
content.TextSetFont(rfont, 20);//set font and size
content.SetFillColor(0xff0000);
content.SetStrokeColor(0x10);
content.TextSetCharSpace(0);
content.TextSetWordSpace(0.3f);
content.TextSetLeading(20);
content.TextSetRenderMode(2);//fill and stroke
content.TextSetHScale(120);//set horizontal scale
content.DrawText("RadaeePDF\rTest!");
content.TextEnd();
content.GSRestore();
//add content to page
page.AddContent(content, true);
content.Destroy();
page.Close();
can i move this text at pdf ?
please help
10 years 1 month ago #10251
by Davide
Replied by Davide on topic how to move the written text
Hi,
no you can't move this text because with that code you add the text to the pdf content, you can move the text using annotations.
no you can't move this text because with that code you add the text to the pdf content, you can move the text using annotations.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
10 years 1 month ago - 10 years 1 month ago #10252
by ankur123987
Replied by ankur123987 on topic how to move the written text
are you talking about edittext annotation. i already pasted my query in different thread. actually i have added date and time at pdf now i want to move at pdf . is there any possiblity that feature would add in upcoming release of sdk or in future.
please help
please help
Last edit: 10 years 1 month ago by ankur123987.
10 years 1 month ago #10259
by Davide
Replied by Davide on topic how to move the written text
Hi,
when you add text to pdf a with content, you can place it where you want changing matrix values.
You can't edit or move it because it becomes part of the pdf.
when you add text to pdf a with content, you can place it where you want changing matrix values.
You can't edit or move it because it becomes part of the pdf.
9 years 11 months ago #10417
by gregh530
Replied by gregh530 on topic how to move the written text
Hello, Quick question regarding moving text.
When I draw a shape with the "Pen" input tool, I am able to move it around to different locations. However, when I use the "text tool" to input text, I should be able to move around in the same way, corrent?
When I draw a shape with the "Pen" input tool, I am able to move it around to different locations. However, when I use the "text tool" to input text, I should be able to move around in the same way, corrent?
9 years 11 months ago #10418
by gregh530
Replied by gregh530 on topic how to move the written text
Hello, Quick question regarding moving text.
When I draw a shape with the "Pen" input tool, I am able to move it around to different locations. However, when I use the "text tool" to input text, I should be able to move around in the same way, correct?
When I draw a shape with the "Pen" input tool, I am able to move it around to different locations. However, when I use the "text tool" to input text, I should be able to move around in the same way, correct?
Time to create page: 0.432 seconds