Menu

#125 Force output size of 8.5 x 11 inches in saved file

v1.0_(example)
open
nobody
None
5
2022-10-10
2022-10-02
Jim
No

Probably not a bug in gscan2pdf. I am using a Brother DCP-L2550DW printer via wifi. I've used the driverless device and I have installed the brscan4 device. They both do not save as 8.5 x 11 but the driverless doesn't balk about US Letter. The problem with the driverless is they don't have a black and white option just color and gray. The gray mode make the files much larger so I prefer black and white od I use the brscan4.

I've been using gscan2pdf for a long time and I was setting my paper size as 8.5 x 11 and it saved the file as 8.5 x 11. I purchased a new computer and installed Manjaro and now when I select US Letter it says that the scan area of my scanner can't handle 8.5 x 11. I made a new entry called Letter and changed the width to 210mm and it works but the problem is the file is now saved in an odd size. I can go online and change the file size but it can be time consuming and I may forget. The scan area probably never was 8.5 x 11 but gscan2pdf never balked and it saved my file as 8.5 x 11. I'm guessing somewhere along the way sane or something is reporting the real scan size and reporting this back to gscan2pdf which naturally says you can't do 8.5 x 11. Is there a way to force 8.5 x 11 output?

Discussion

  • Jeffrey Ratcliffe

    Please start gscan2pdf from the command line with:

    gscan2pdf --log=log
    

    Open the scan dialog, quit, and post the log file, which it has probably compressed to log.xz.

     
  • Jim

    Jim - 2022-10-02

    Thanks for the help. I have attached the log.

     
  • Jeffrey Ratcliffe

    Thanks for the log. Your scanner is defaulting to the ADF, which seems to have a maximum width of 211.9mm, whereas Letter size is 216mm. The tolerance is hard-coded to 1mm.

    It might be worth trying the flatbed, and possibly the other ADF options to see if the width is different there.

    But I suppose your real question, is whether it would be possible to ignore the image size and force a particular paper size. Of course, I could add a paper size option to the save dialog. However, this would throw up a few extra questions:

    • Would you want to scale (stretch/squeeze) the image to suit, or add a border?
    • If you want a border, should it be on both sides or only one? Black/white/alpha/a copy of the edge pixels?

    A different solution might be an option in tools to pad the appropriate edge to create the above border. Maybe it would be better to start there.

    Thoughts?

     
  • Jim

    Jim - 2022-10-04

    Thanks for the help. I tried the other options and it still said that US Letter, etc paper sizes aren't supported. I was using KUbuntu 20.04 in the past and it always kicked out a 8.5 x 11 PDF. I did try KUbuntu 22.04 on a Virtual Machine and it as well gave me US Letter not supported.

    I messed around with changing the DPI but it was trial and error to get 8.5 x 11 and it was stretched. Personally I'd prefer not to the image not to be stretched and the border to be on the right and the bottom. I use white mostly so a white border would work for me.

    A different solution might be an option in tools to pad the appropriate edge to create the above border. Maybe it would be better to start there.

    If it's possible to add in mm this would be great as it is harder to convert how many pixels are needed on the border based on what's needed per scan and the DPI.

     
  • Jeffrey Ratcliffe

    Ticket moved from /p/gscan2pdf/bugs/405/

     

Log in to post a comment.