Missing *DefaultResolution

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
perl
Domain
backend

Research direction

No source file, test, or entry point is named. Trace the code that generates PPD output for a printer definition with a single Resolution choice, then verify that the generated PPD includes a *DefaultResolution statement matching that choice.

Written by the indexing model from the issue text.

Description

When a printer has a Resolution option, foomatic will usually generate code for a user interface element in the PPD file, including a *DefaultResolution statement. When there is only a single choice for the Resolution, something like this will end up in the PPD file instead, however:

*FoomaticRIPOption Resolution: enum CmdLine A 100
*FoomaticRIPOptionSetting Resolution=300dpi: " -r300"

In this case, the *DefaultResolution statement is missing entirely. The problem with that is that the *DefaultResolution statement is meaningful even when there is no choice of resolutions. Without it, users of the PPD file will have no idea what the resolution of the printer should be.

A workaround for this is to add a <ppdentry> to the printer definition, but since foomatic does know the resolution, it should really be smart enough to add the *DefaultResolution entry automatically.

Dominant language
Perl
Stars
8
Forks
5
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenPrinting/foomatic-db-engine

All issues in OpenPrinting/foomatic-db-engine

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.