Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about Android development and PDF
  • Page:
  • 1
  • 2

TOPIC:

how to move the written text 8 years 2 months ago #10250

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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 | 8);//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

Please Log in or Create an account to join the conversation.

how to move the written text 8 years 2 months ago #10251

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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.

Please Log in or Create an account to join the conversation.

how to move the written text 8 years 2 months ago #10252

  • ankur123987
  • ankur123987's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
  • Available as freelancer (ex website to app 30min)
  • Posts: 97
  • Thank you received: 0
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 Log in or Create an account to join the conversation.

Last edit: by ankur123987.

how to move the written text 8 years 2 months ago #10259

  • Davide
  • Davide's Avatar
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 814
  • Thank you received: 65
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.

Please Log in or Create an account to join the conversation.

how to move the written text 8 years 1 month ago #10417

  • gregh530
  • gregh530's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

how to move the written text 8 years 1 month ago #10418

  • gregh530
  • gregh530's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 4
  • Thank you received: 0
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?

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Powered by Kunena Forum