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

All PPD Text not being included in PostScript #1215

Closed
michaelrsweet opened this issue Jun 29, 2005 · 2 comments
Closed

All PPD Text not being included in PostScript #1215

michaelrsweet opened this issue Jun 29, 2005 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@michaelrsweet
Copy link
Collaborator

Version: 1.2-feature
CUPS.org User: bordenb

In the file "ppd.c", function "ppd_read()", the variable "line" is limited to 64Kb. In our environment, we use the PPD to include large chunks of PostScript into an output file to handle color management. Our inclusion code sometimes reaches 140Kb. This code contains entire Color Rendering Dictionaries (basically 11x11x11x11 hex arrays) based upon choices made when printing the job.

We are currently moving from Mac OS-9 to OS-X, and will be converting over 1000 machines. We could modify the code, ourselves, and in fact I have modified the code and successfully tested it on my own OS-X machine. Unfortunately, we are not in charge of building and/or distributing the final setup CD's for OS-X in our company. By modifying the code ourselves and having it placed on the install CD's, we would be forced to modify the CUPS software every time we upgrade OS-X versions.

We would like to have the CUPS software ppd-handling routine modified to either have the "line" array enlarged, or as I have tested: to make it dynamic and increase the allocation as needed -- starting with the default allocation of 64Kb.

I will gladly send my modified version of ppd.c if requested.

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Reassigning to 1.2 as an RFE.

FWIW, using strings longer than 64k will cause problems on Windows...

@michaelrsweet
Copy link
Collaborator Author

CUPS.org User: mike

Fixed in Subversion repository.

Updated the ppd_read() code to dynamically allocate the line data, up to 256k worth.

@michaelrsweet michaelrsweet added the enhancement New feature or request label Mar 17, 2016
@michaelrsweet michaelrsweet added this to the Stable milestone Mar 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant