Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate Page Settings to Printout #14

Open
SeanCarrick opened this issue Oct 5, 2019 · 0 comments
Open

Propagate Page Settings to Printout #14

SeanCarrick opened this issue Oct 5, 2019 · 0 comments
Assignees
Labels
bug Something isn't working core enhancement New feature or request

Comments

@SeanCarrick
Copy link
Owner

Describe the bug
Text is being cut off on the right margin and the margins are at 1" on the top, left and right, and 1/4 to 1/2 inch on the bottom. It would be nice to be able to set these margins, as well as the font and propagate the changes to the printout.

To Reproduce
Steps to reproduce the behavior:

  1. Simply run the program, provided a path to the source tree or a file on the command line and look at the resulting printouts.

Expected behavior
Utility should provide nice clean printouts of the source code requested.

Screenshots
N/A

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Browser: Chrome
  • Version: 77.0.3865.90 (Official Build) (64-bit)

Smartphone (please complete the following information):
N/A

Additional context
Attaching scans of a couple of the eight pages that were printed.
Second Run Page 1of8
Second Run Page 3of8

@SeanCarrick SeanCarrick added bug Something isn't working enhancement New feature or request core labels Oct 5, 2019
@SeanCarrick SeanCarrick self-assigned this Oct 5, 2019
SeanCarrick added a commit that referenced this issue Oct 6, 2019
This commit was working to resolving Issue #14, but I have, thus far, failed. This issue needs to remain open for now.

I've gotten it to the best I can figure out. I've tried using `DocPrintJob`, `DocFlavor`, `Doc`, `PrintRequestAttributeSet` and `PrintServiceLookup`, but keep getting unhelpful exception messages from the API and cannot figure out how to get the printouts any better.

Recursion still works and the files get printed like the last iteration. But, I can't seem to get it any better than that.

I have it using `PrintRequestAttributeSet` and I am setting the attributes for `Copies(1)` and `Sides.DUPLEX`, but it still only prints on one side of the page. I'm at a loss for right now.

Since I'm stuck with what I've got for the printouts, I'm going to move onto working on the functionality for storing the Project Name and last print date, as well as working on the printing method to only print those files that have changed since the last print date. In other words, I'm moving onto implementing the Feature Request in Issue #6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working core enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant