siddharthpatel257 / apv

Automatically exported from code.google.com/p/apv
GNU General Public License v3.0
0 stars 0 forks source link

pages of some PDFs being clipped at the beginning #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
first of all big thanks to everyone who participated in the project - apv is a 
great app, I couldn't find any other that would provide similar features with 
such light weight.
however, it has one irritating issue with one of my PDFs.

as you can see from the attached screenshot, 2 first lines are being clipped in 
APV.
it happens of every page of that PDF.
right side of the image shows the file opened in QuickOffice.

I've tried changing various options of the app, but none helped.
I'm using Android 2.1

Original issue reported on code.google.com by thefall90 on 4 Dec 2012 at 9:58

Attachments:

GoogleCodeExporter commented 9 years ago
I've encountered this too with PDFs of articles from Springer's LNCS volumes.  
Try one of the documents from 
http://link.springer.com/book/10.1007/978-3-642-20898-0/page/1 for example.

I found that if I disabled the manual calculation in get_page_box in 
pdfview2/apvcore.c so that it always uses fz_bound_page then it works.  (If the 
original reporter wants to try this, a simpler way to do it is to change the 
"PDF page box type" option to "MediaBox".)  It seems that fz_bound_page changes 
the box so that it always has x0,y0 = 0,0, whereas the code in get_page_box 
does not.

Original comment by pkdz...@googlemail.com on 14 Mar 2013 at 10:16

GoogleCodeExporter commented 9 years ago
Switching to MediaBox fixes the problem. Thanks you!

Original comment by mclaud2...@gmail.com on 31 Jul 2013 at 10:57