- 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 text at pdf?
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
9 years 11 months ago - 9 years 11 months ago #10410
by ankur123987
How to move text at pdf? was created by ankur123987
Hello support team,
I added text at pdf now the text is part of pdf. is it possible to move this added text? can you guide me?
if its not possible would it like to add in future release of library
Thanks
I added text at pdf now the text is part of pdf. is it possible to move this added text? can you guide me?
if its not possible would it like to add in future release of library
Thanks
Last edit: 9 years 11 months ago by ankur123987.
9 years 11 months ago #10411
by support
Replied by support on topic How to move text at pdf?
Are you adding text as annotation or on the page?
If second we don't provide a way to alter page structure and we're not planning to introduce such features.
May you write the code you're adopting to add text?
If second we don't provide a way to alter page structure and we're not planning to introduce such features.
May you write the code you're adopting to add text?
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
9 years 11 months ago #10413
by ankur123987
Replied by ankur123987 on topic How to move text at pdf?
I am using following method
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();
thanks
can i move with the above method?
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();
thanks
can i move with the above method?
9 years 11 months ago #10414
by Davide
Replied by Davide on topic How to move text at pdf?
Hi,
no with that code you can't move the text because it becomes part of the pdf content.
You can move text adding an annotation using that code: www.radaeepdf.com/support/knowledge-base...component&kbartid=43
no with that code you can't move the text because it becomes part of the pdf content.
You can move text adding an annotation using that code: www.radaeepdf.com/support/knowledge-base...component&kbartid=43
9 years 11 months ago #10415
by radaee
Replied by radaee on topic How to move text at pdf?
another idea is:
draw rectangle with same color as background, cover the text.
draw rectangle with same color as background, cover the text.
- ankur123987
-
Topic Author
- Offline
- Premium Member
-
- Available as freelancer (ex website to app 30min)
Less
More
- Posts: 97
- Thank you received: 0
9 years 11 months ago - 9 years 11 months ago #10416
by ankur123987
Replied by ankur123987 on topic How to move text at pdf?
i think about edittext annotatiion as alternative but the problem with edittext are following
1 I posted in different thread of edittext the move code is not work with RDPDFreader module.
2 I have requirement to move date and time which are text . so for that i have to disable the click listener of this text how can i do it . so that this edit text does not change .
3 i have another requirement where user enter the text in blank edittext which initially size is wrap of 1 character as user enter the character in edittext its change the size and then this edittext is added the pdf
this is the following url for my queries
www.radaeepdf.com/forum/Android-developm...text-at-pdf?start=12
how can i do that ?
1 I posted in different thread of edittext the move code is not work with RDPDFreader module.
2 I have requirement to move date and time which are text . so for that i have to disable the click listener of this text how can i do it . so that this edit text does not change .
3 i have another requirement where user enter the text in blank edittext which initially size is wrap of 1 character as user enter the character in edittext its change the size and then this edittext is added the pdf
this is the following url for my queries
www.radaeepdf.com/forum/Android-developm...text-at-pdf?start=12
how can i do that ?
Last edit: 9 years 11 months ago by ankur123987.
Time to create page: 0.380 seconds