- Posts: 13
- 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
Read content from one PDF file
IP: 192.168.0.71
8 years 8 months ago #12621
by Tele
Read content from one PDF file was created by Tele
Can any one hlep me how to read content from one stored pdf from sd card and generate new psd with that content ?
IP: 192.168.0.71
8 years 8 months ago #12622
by Tele
Replied by Tele on topic Read content from one PDF file
Can any one help me how to read content from one stored pdf from sd card and generate new psd with that content ?
IP: 192.168.0.71
8 years 8 months ago #12625
by nermeen
Replied by nermeen on topic Read content from one PDF file
Copy page content is not supported (license violation motives), you can use the below APIs to get page's text:
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)
Code:
ObjsGetCharCount
ObjsGetCharFontName
ObjsGetCharIndex
ObjsGetCharRect
ObjsStart
ObjsGetString
IP: 192.168.0.71
8 years 8 months ago #12626
by Tele
Replied by Tele on topic Read content from one PDF file
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 ?
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 ?
IP: 192.168.0.71
8 years 8 months ago #12630
by Tele
What about pdf has images, boxes and other types rather than text, how to read those and print in new pdf ?
Replied by Tele on topic Read content from one PDF file
Using the above methods can I generate new pdf with that content ?nermeen wrote: Copy page content is not supported (license violation motives), you can use the below APIs to get page's text:
Code:ObjsGetCharCount ObjsGetCharFontName ObjsGetCharIndex ObjsGetCharRect ObjsStart ObjsGetString
What about pdf has images, boxes and other types rather than text, how to read those and print in new pdf ?
IP: 192.168.0.71
8 years 8 months ago - 8 years 8 months ago #12631
by nermeen
Replied by nermeen on topic Read content from one PDF file
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
for other types, currently is not supported (you can only copy the whole page)
Check PDFTestAct.NewImagePage, PDFTestAct.NewPage.
In your case you will use m_doc.GetPage instead of m_doc.NewPage
For text, you can get the text with respective position and add it into another, but this wont include font information (license violation motives)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 other types, currently is not supported (you can only copy the whole page)
Last edit: 8 years 8 months ago by nermeen.
Time to create page: 0.427 seconds