PCL to PDF with colors











up vote
0
down vote

favorite












I need to convert .pcl files to .pdf files. I did some searching and found that gplc6 (from the Ghostscript family) is the tool I need. I ran the command like this:



gpcl6 -o test.pdf -sDEVICE=pdfwrite test.pcl


The problem is that the output pdf has no colors in it. Colors are not even converted to grayscale instead colored areas are not present in the pdf.



To make sure that the problem is not in the pcl file, I used the demo version of RED TITAN pcl viewer and it has colors in it. I even converted it to pdf and it was colored as expected.
How can i make the conversion without losing the colored areas?



enter image description here
RED TITAN output



enter image description here
gpcl6 output










share|improve this question









New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Maybe this link will help, How to print PCL file output to PDF file instead of printer
    – sudodus
    Nov 27 at 12:36










  • @sudodus I already saw this question. It is how i knew about gpcl6 in the first place but they are not facing my problem. I appreciate your help anyways.
    – zmolla
    Nov 27 at 13:31










  • Are there many PCL files or only a few? I mean, would it work with a manual tool, or do you need a tool for a batch process.
    – sudodus
    Nov 27 at 13:36










  • @sudodus I need a tool for a batch process.
    – zmolla
    Nov 27 at 20:27










  • It is good for us to know that you need a batch tool. Let us hope that someone who knows about such a tool will see your question and help you :-)
    – sudodus
    Nov 27 at 20:32















up vote
0
down vote

favorite












I need to convert .pcl files to .pdf files. I did some searching and found that gplc6 (from the Ghostscript family) is the tool I need. I ran the command like this:



gpcl6 -o test.pdf -sDEVICE=pdfwrite test.pcl


The problem is that the output pdf has no colors in it. Colors are not even converted to grayscale instead colored areas are not present in the pdf.



To make sure that the problem is not in the pcl file, I used the demo version of RED TITAN pcl viewer and it has colors in it. I even converted it to pdf and it was colored as expected.
How can i make the conversion without losing the colored areas?



enter image description here
RED TITAN output



enter image description here
gpcl6 output










share|improve this question









New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • Maybe this link will help, How to print PCL file output to PDF file instead of printer
    – sudodus
    Nov 27 at 12:36










  • @sudodus I already saw this question. It is how i knew about gpcl6 in the first place but they are not facing my problem. I appreciate your help anyways.
    – zmolla
    Nov 27 at 13:31










  • Are there many PCL files or only a few? I mean, would it work with a manual tool, or do you need a tool for a batch process.
    – sudodus
    Nov 27 at 13:36










  • @sudodus I need a tool for a batch process.
    – zmolla
    Nov 27 at 20:27










  • It is good for us to know that you need a batch tool. Let us hope that someone who knows about such a tool will see your question and help you :-)
    – sudodus
    Nov 27 at 20:32













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I need to convert .pcl files to .pdf files. I did some searching and found that gplc6 (from the Ghostscript family) is the tool I need. I ran the command like this:



gpcl6 -o test.pdf -sDEVICE=pdfwrite test.pcl


The problem is that the output pdf has no colors in it. Colors are not even converted to grayscale instead colored areas are not present in the pdf.



To make sure that the problem is not in the pcl file, I used the demo version of RED TITAN pcl viewer and it has colors in it. I even converted it to pdf and it was colored as expected.
How can i make the conversion without losing the colored areas?



enter image description here
RED TITAN output



enter image description here
gpcl6 output










share|improve this question









New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I need to convert .pcl files to .pdf files. I did some searching and found that gplc6 (from the Ghostscript family) is the tool I need. I ran the command like this:



gpcl6 -o test.pdf -sDEVICE=pdfwrite test.pcl


The problem is that the output pdf has no colors in it. Colors are not even converted to grayscale instead colored areas are not present in the pdf.



To make sure that the problem is not in the pcl file, I used the demo version of RED TITAN pcl viewer and it has colors in it. I even converted it to pdf and it was colored as expected.
How can i make the conversion without losing the colored areas?



enter image description here
RED TITAN output



enter image description here
gpcl6 output







printing pdf debian ghostscript






share|improve this question









New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 27 at 12:30









karel

55.3k11122140




55.3k11122140






New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 27 at 9:42









zmolla

11




11




New contributor




zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






zmolla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • Maybe this link will help, How to print PCL file output to PDF file instead of printer
    – sudodus
    Nov 27 at 12:36










  • @sudodus I already saw this question. It is how i knew about gpcl6 in the first place but they are not facing my problem. I appreciate your help anyways.
    – zmolla
    Nov 27 at 13:31










  • Are there many PCL files or only a few? I mean, would it work with a manual tool, or do you need a tool for a batch process.
    – sudodus
    Nov 27 at 13:36










  • @sudodus I need a tool for a batch process.
    – zmolla
    Nov 27 at 20:27










  • It is good for us to know that you need a batch tool. Let us hope that someone who knows about such a tool will see your question and help you :-)
    – sudodus
    Nov 27 at 20:32


















  • Maybe this link will help, How to print PCL file output to PDF file instead of printer
    – sudodus
    Nov 27 at 12:36










  • @sudodus I already saw this question. It is how i knew about gpcl6 in the first place but they are not facing my problem. I appreciate your help anyways.
    – zmolla
    Nov 27 at 13:31










  • Are there many PCL files or only a few? I mean, would it work with a manual tool, or do you need a tool for a batch process.
    – sudodus
    Nov 27 at 13:36










  • @sudodus I need a tool for a batch process.
    – zmolla
    Nov 27 at 20:27










  • It is good for us to know that you need a batch tool. Let us hope that someone who knows about such a tool will see your question and help you :-)
    – sudodus
    Nov 27 at 20:32
















Maybe this link will help, How to print PCL file output to PDF file instead of printer
– sudodus
Nov 27 at 12:36




Maybe this link will help, How to print PCL file output to PDF file instead of printer
– sudodus
Nov 27 at 12:36












@sudodus I already saw this question. It is how i knew about gpcl6 in the first place but they are not facing my problem. I appreciate your help anyways.
– zmolla
Nov 27 at 13:31




@sudodus I already saw this question. It is how i knew about gpcl6 in the first place but they are not facing my problem. I appreciate your help anyways.
– zmolla
Nov 27 at 13:31












Are there many PCL files or only a few? I mean, would it work with a manual tool, or do you need a tool for a batch process.
– sudodus
Nov 27 at 13:36




Are there many PCL files or only a few? I mean, would it work with a manual tool, or do you need a tool for a batch process.
– sudodus
Nov 27 at 13:36












@sudodus I need a tool for a batch process.
– zmolla
Nov 27 at 20:27




@sudodus I need a tool for a batch process.
– zmolla
Nov 27 at 20:27












It is good for us to know that you need a batch tool. Let us hope that someone who knows about such a tool will see your question and help you :-)
– sudodus
Nov 27 at 20:32




It is good for us to know that you need a batch tool. Let us hope that someone who knows about such a tool will see your question and help you :-)
– sudodus
Nov 27 at 20:32










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Try to add following switches



-sColorConversionStrategy=/RGB
-dProcessColorModel=/DeviceRGB


Hence the command should be



gpcl6 -sOutputFile=./test.pdf -sColorConversionStrategy=RGB -dProcessColorModel=/DeviceRGB -sDEVICE=pdfwrite test.pcl





share|improve this answer























  • I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
    – zmolla
    Nov 28 at 8:45












  • Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
    – abu_bua
    Nov 28 at 12:30










  • I am using version 9.26 and i didn't change the icc profiles.
    – zmolla
    Nov 28 at 12:44












  • I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
    – abu_bua
    Nov 28 at 13:15










  • I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
    – zmolla
    2 days ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






zmolla is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096430%2fpcl-to-pdf-with-colors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













Try to add following switches



-sColorConversionStrategy=/RGB
-dProcessColorModel=/DeviceRGB


Hence the command should be



gpcl6 -sOutputFile=./test.pdf -sColorConversionStrategy=RGB -dProcessColorModel=/DeviceRGB -sDEVICE=pdfwrite test.pcl





share|improve this answer























  • I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
    – zmolla
    Nov 28 at 8:45












  • Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
    – abu_bua
    Nov 28 at 12:30










  • I am using version 9.26 and i didn't change the icc profiles.
    – zmolla
    Nov 28 at 12:44












  • I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
    – abu_bua
    Nov 28 at 13:15










  • I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
    – zmolla
    2 days ago















up vote
0
down vote













Try to add following switches



-sColorConversionStrategy=/RGB
-dProcessColorModel=/DeviceRGB


Hence the command should be



gpcl6 -sOutputFile=./test.pdf -sColorConversionStrategy=RGB -dProcessColorModel=/DeviceRGB -sDEVICE=pdfwrite test.pcl





share|improve this answer























  • I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
    – zmolla
    Nov 28 at 8:45












  • Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
    – abu_bua
    Nov 28 at 12:30










  • I am using version 9.26 and i didn't change the icc profiles.
    – zmolla
    Nov 28 at 12:44












  • I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
    – abu_bua
    Nov 28 at 13:15










  • I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
    – zmolla
    2 days ago













up vote
0
down vote










up vote
0
down vote









Try to add following switches



-sColorConversionStrategy=/RGB
-dProcessColorModel=/DeviceRGB


Hence the command should be



gpcl6 -sOutputFile=./test.pdf -sColorConversionStrategy=RGB -dProcessColorModel=/DeviceRGB -sDEVICE=pdfwrite test.pcl





share|improve this answer














Try to add following switches



-sColorConversionStrategy=/RGB
-dProcessColorModel=/DeviceRGB


Hence the command should be



gpcl6 -sOutputFile=./test.pdf -sColorConversionStrategy=RGB -dProcessColorModel=/DeviceRGB -sDEVICE=pdfwrite test.pcl






share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 27 at 22:33

























answered Nov 27 at 22:21









abu_bua

3,06081023




3,06081023












  • I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
    – zmolla
    Nov 28 at 8:45












  • Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
    – abu_bua
    Nov 28 at 12:30










  • I am using version 9.26 and i didn't change the icc profiles.
    – zmolla
    Nov 28 at 12:44












  • I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
    – abu_bua
    Nov 28 at 13:15










  • I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
    – zmolla
    2 days ago


















  • I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
    – zmolla
    Nov 28 at 8:45












  • Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
    – abu_bua
    Nov 28 at 12:30










  • I am using version 9.26 and i didn't change the icc profiles.
    – zmolla
    Nov 28 at 12:44












  • I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
    – abu_bua
    Nov 28 at 13:15










  • I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
    – zmolla
    2 days ago
















I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
– zmolla
Nov 28 at 8:45






I just tried your solution but it didn't solve the problem and i also tried putting CMYK instead of RGB but that didn't solve the problem too. Thank you.
– zmolla
Nov 28 at 8:45














Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
– abu_bua
Nov 28 at 12:30




Which gpcl6 version are you using? 9.26 is the one for 11/2018. Did you changed ìccprofiles?
– abu_bua
Nov 28 at 12:30












I am using version 9.26 and i didn't change the icc profiles.
– zmolla
Nov 28 at 12:44






I am using version 9.26 and i didn't change the icc profiles.
– zmolla
Nov 28 at 12:44














I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
– abu_bua
Nov 28 at 13:15




I got colored output.Compiled on Ubuntu18.04. Load up a sample pcl file.
– abu_bua
Nov 28 at 13:15












I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
– zmolla
2 days ago




I really appreciate your help but unfortunately i can not upload a sample as they are confidential documents. I was also wondering if there is something you can tell me about icc profiles that would help.
– zmolla
2 days ago










zmolla is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















zmolla is a new contributor. Be nice, and check out our Code of Conduct.













zmolla is a new contributor. Be nice, and check out our Code of Conduct.












zmolla is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096430%2fpcl-to-pdf-with-colors%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]