Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my text doc i want to sperate the region between text and non text region it means removing the white space from the doc and then apply boundary on text regions
so anyone has work on this type of prob so plzz help me any pesudocode/source code

What I have tried:

I tried in matlab I separated the header body and footer separately now in body I want to distinguish between text and non text region
Posted
Updated 28-Feb-19 4:46am
Comments
Richard MacCutchan 28-Feb-19 7:55am    
The best way to approach this problem is to draw on paper what you want the layout to be. You can then see how to calculate the height and width of each section of your page.
Rick York 28-Feb-19 10:40am    
Step 1 in asking a question : do NOT write in texting lingo. If you can't be bothered to spell out the word "please" then why should anyone help you?

1 solution

The best way is to find the drawing code and than change it or extract the needed information.

Another possible solution it to draw (or copy) in some memory (a bitmap or device context) and than check the pixel areas and so find the interest areas. When developing such solution its best to draw all temporarly on the screen for debugging. The Microsoft printer documentation is hugh, but here you find a printing primer article.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900