pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: pdf shows as very pixelated
Date Wed, 20 Sep 2017 15:54:06 GMT
Hi,

Your PDF is made from a low resolution scan, or from a hires image that 
was reduced poorly. It looks bad even with Adobe Reader. The size of the 
image within the PDF is 842 x 595. A good scan (300dpi) is 3508 x 2480 
pixels.

Tilman





Am 20.09.2017 um 17:42 schrieb gerryw@hispeed.ch:
> Hi
>
> The link to my pdf is:
>
> http://www116.zippyshare.com/v/WdY6AYy7/file.html
>
> Regards
>
> Gerry
>
>
> On 20.09.2017 17:27, Tilman Hausherr wrote:
>> Hi,
>>
>> http://filedropper.com/
>>
>> Tilman
>>
>> PS: please keep it on list. This is a recent flaw in thunderbird, get 
>> the "reply to list" icon.
>>
>> Am 20.09.2017 um 17:22 schrieb gerryw@hispeed.ch:
>>> Hi Tilman
>>>
>>> Thanks for your quick reply.
>>>
>>> Could you please give me the name of a Sharehoster you like to use 
>>> and I will post a pdf on there.
>>>
>>> Thanks
>>>
>>> Gerry
>>>
>>>
>>> On 19.09.2017 18:11, Tilman Hausherr wrote:
>>>> Hi,
>>>> Please try again with 2.0.7. If it doesn't work as wished, please 
>>>> upload the PDF to a sharehoster.
>>>> Tilman
>>>>
>>>> Am 19.09.2017 um 17:44 schrieb Gerry:
>>>>> Hi
>>>>>
>>>>> I am using pdfbox-app-2.0.0 in my program.
>>>>>
>>>>> I am using the following code:
>>>>>
>>>>> public JPanel makeDocument() throws IOException, 
>>>>> FileNotFoundException{
>>>>>
>>>>>         File target = new File(filePath);
>>>>>
>>>>>         PDDocument pddocument = PDDocument.load(target);
>>>>>
>>>>>          JPanel displayView;
>>>>>
>>>>>           PDFRenderer pdfrend = new PDFRenderer(pddocument);
>>>>>
>>>>>
>>>>>             for (int i = 0; i < pddocument.getNumberOfPages();
i ++){
>>>>>
>>>>>                 //BufferedImage pageImage = 
>>>>> pdfrend.renderImage(i,0.9f);
>>>>>                 BufferedImage pageImage = 
>>>>> pdfrend.renderImageWithDPI(i,300);
>>>>>
>>>>>                 this.docList.add(pageImage);
>>>>>             }
>>>>>
>>>>>
>>>>>
>>>>>             displayProcessing = new DisplayDocs2(this.docList);
>>>>>
>>>>>             displayView = displayProcessing.getPanel();
>>>>>
>>>>>           pddocument.close();
>>>>>
>>>>>         return displayView;
>>>>>
>>>>>     }
>>>>>
>>>>> when I use this code to open a computer produced pdf (with a white 
>>>>> background) it works fine.
>>>>>
>>>>> But when I try to open a pdf which was a scanned page it come out 
>>>>> pixelated and pretty much unreadable like grey instead of white 
>>>>> background has an effect.
>>>>>
>>>>> Any help gratefully received. Sorry for my bad descriptive skills 
>>>>> I am learning as I go.
>>>>>
>>>>> Gerry
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>>>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>>>
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


Mime
View raw message