Read content from one PDF file - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about Android development and PDF
  • Page:
  • 1

TOPIC: Read content from one PDF file

Read content from one PDF file 1 year 3 months ago #12621

  • Tele
  • Tele's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Can any one hlep me how to read content from one stored pdf from sd card and generate new psd with that content ?

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

Read content from one PDF file 1 year 3 months ago #12622

  • Tele
  • Tele's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Can any one help me how to read content from one stored pdf from sd card and generate new psd with that content ?

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

Read content from one PDF file 1 year 3 months ago #12625

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
Copy page content is not supported (license violation motives), you can use the below APIs to get page's text:
ObjsGetCharCount
ObjsGetCharFontName
ObjsGetCharIndex
ObjsGetCharRect
ObjsStart
ObjsGetString
or you can copy page from one pdf to another and/or merge pdfs, check PDFTestAct.concat_pdf in RDPDFReader module (premium license is needed)

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

Read content from one PDF file 1 year 3 months ago #12626

  • Tele
  • Tele's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0
Thank you Nermeen, Using PDFTestAct.concat_pdf method I have merged two pdfs
Can I edit merged pdf ?
Here is complete details :
"A" is generated pdf which has dynamic content and pages with respect content
"B" is a test pdf which I want merge/concat with "A"
Using PDFTestAct.concat_pdf method I have merged both "A" and "B" pdfs
Now I want edit "B" pdf pages after merging. Is this possible ? and How ?

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

Read content from one PDF file 1 year 3 months ago #12630

  • Tele
  • Tele's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 13
  • Thank you received: 0

nermeen wrote: Copy page content is not supported (license violation motives), you can use the below APIs to get page's text:

ObjsGetCharCount
ObjsGetCharFontName
ObjsGetCharIndex
ObjsGetCharRect
ObjsStart
ObjsGetString

Using the above methods can I generate new pdf with that content ?
What about pdf has images, boxes and other types rather than text, how to read those and print in new pdf ?

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

Read content from one PDF file 1 year 3 months ago #12631

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
You need to save & close "B" first, then reopen it and add text and/or image using PageContent methods.
Check PDFTestAct.NewImagePage, PDFTestAct.NewPage.

In your case you will use m_doc.GetPage instead of m_doc.NewPage

Using the above methods can I generate new pdf with that content ?
What about pdf has images, boxes and other types rather than text, how to read those and print in new pdf ?

For text, you can get the text with respective position and add it into another, but this wont include font information (license violation motives)
for other types, currently is not supported (you can only copy the whole page)

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

Last edit: by nermeen.
  • Page:
  • 1
Powered by Kunena Forum