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

More
IP: 192.168.0.71 8 years 8 months ago #12621 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 ?
More
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 ?
More
IP: 192.168.0.71 8 years 8 months ago #12625 by nermeen
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
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)
More
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 ?
More
IP: 192.168.0.71 8 years 8 months ago #12630 by Tele
Replied by Tele on topic Read content from one PDF file

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

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 ?
More
IP: 192.168.0.71 8 years 8 months ago - 8 years 8 months ago #12631 by nermeen
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)
Last edit: 8 years 8 months ago by nermeen.
Time to create page: 0.427 seconds
Powered by Kunena Forum