View Single Post
Old 02-07-2011, 03:11 PM   #1
Mark.Vasconcelos
Junior Member
Mark.Vasconcelos began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2011
Device: Galaxy Tab
Renderer resolution with RMSDK

PS: Actually, I tried to post this message on Adobe Reader forums, but when submiting all my message get blank and a alert tell me "You canno't post a blank message", I wroted this message 3 times and tried from another browser, not sucesfully, I come to post here.



Hi, I'm developing an Reader application for Android using the RMSDK. I already get this working to render the contents on device, but when using a PDF file theres a lot of yellow pixels that made the image not readable.


This is my code to render the file to the buffer.


Code:
    thisHost->setDPI(169.0);
    m_renderer->setViewport(600, 1024, false);
    dpdoc::Matrix environmentMatrix(1, 0, 0, 1, 0, 0);
    m_renderer->setEnvironmentMatrix(environmentMatrix);
    emh::PNGSurface * surface = thisHost->renderPage(600, 1024, 600, 1024, NULL);
PS: 600x1024 is the dimension of the Galaxy Tab wich I'm testing for.


If any more information is needed I'm able to give, so any tip can help me, I cannot get this done.



I already read the specification, specially Design Principles and Coordinates System, but I still don't get the solution to my problem.


When rendering EPUB files this problem is almost not perceptible, so I keep to develop the apk with it, but I need to get the PDF to render too.



The result when executing my code with a EPUB file is the following:


And the result when executing my code with a PDF file is the following:



Regards,
Marcos Vasconcelos
Mark.Vasconcelos is offline   Reply With Quote