-
Notifications
You must be signed in to change notification settings - Fork 126
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
PDF printout rotated 180 degrees and mirrored #582
Comments
This is likely a cups-pdf bug, not CUPS or cupsfilters itself. I've encountered the issue with cups-pdf before. Processing the same jobs with an ippeveprinter instance results in the correct output. |
Before using cups-pdf, I had been printing with Canon iB4100 and Epson WF C5290, and the actual printouts came out rotated and mirrored. To facilitate reproducing the issue, I started using cups-pdf for verification and reproduction. By analyzing the relevant logs in the error_log, it was observed that when printing to PDF, a pdftopdf filter is applied. cfFilterUniversal: Adding pdftopdf to chain Suspecting an issue with pdftopdf, I attempted to use the pdftopdf filter to generate pdftopdf_output.pdf: The resulting pdftopdf_output.pdf generated by pdftopdf also appeared rotated and mirrored. It seems to be a bug in /usr/lib/cups/filter/pdftopdf. |
OK, well this still isn't CUPS - moving over to cups-filters... |
can i try this issue? is it still unresolved? |
@yogesh1801 no problem, please go ahead. Help is always welcome. |
I executed the following commands to reproduce the issue:
Did you get any error codes when executing the above commands? Or try reinstalling cups-pdf:
Check if the printer is working properly via http://127.0.0.1:631/printers/ and try printing a test page. View the PDF of the test page :
|
I didn't get any error codes When printing the test page it gives same error as above still the same error @tillkamppeter @kinpass |
I can't reproduce the issue you encountered. Try using a different method:
This method can also generate a problematic PDF, but print_mirror_out.pdf needs to be opened in Chrome to see the content. When I try to open it in Adobe Acrobat, the content is blank. This might be due to a conversion issue preventing it from opening correctly. I have tried converting other PDFs, and they can be opened normally in Adobe Acrobat. |
似乎是文档[print_mirror.pdf]自身的原因,换了一个文档就不会重现该问题。 ==== It seems that the problem is caused by the document [print_mirror.pdf] itself. Changing another document will not reproduce the problem. |
If there is still an error when printing with WPS, it is recommended to try printing with evince. |
There are some issues with the original file
|
由于一些限制条件,应用只能通过lp命令来发送打印任务。通过 Adobe Acrobat 打开,打印是正常的。 ================ The following environment has been tested and is working correctly: Printing via lp works fine, so it is likely an issue with pdftopdf in cups-filters (2.0.0). ================ |
cups-filters-1.28.xx依赖libqpdf28; 而cups-filters-2.0依赖libqpdf29。也许问题出在qpdf上。
---translation--
|
感谢您的回复 我验证了一下您的猜测,尝试了3个版本: 其中 cups-filters 1.28.15 libqpdf28 这个版本lp后pdf是正常的。 从现象上看,应该是 libqpdf29 的问题。但具体原因还不清楚。 通过执行您提供的命令:
lp后的内容正常了,可先通过该方法来解决这类pdf的问题。 ==============translation============== Thank you for your response. I verified your assumption by testing three versions: cups-filters 1.28.15 with libqpdf28 Based on this, it seems to be an issue with libqpdf29. However, the specific cause is still unclear. By executing the command you provided:
the output from lp is normal. This method can temporarily resolve issues with such PDFs. ======================================= |
Describe the bug
Encountered a PDF file where the preview and the actual printout don't match, print_mirror.pdf.
The preview appears normal:
However, the actual printout:
The content printed out is rotated 180 degrees and mirrored. Why is this happening, and is there a solution?
Expectation: Consistency between the preview and the printout.
I attempted to pinpoint the issue and ultimately discovered that the PDF was processed into output.pdf using the pdftopdf filter.
To Reproduce
Steps to reproduce the behavior:
PDF Files
print_mirror.pdf
output.pdf
System Information:
Ubuntu - 23.10 mantic
CUPS - 2.4.6-0ubuntu3 arm64
cups-filters - 2.0.0-0ubuntu1 arm64
The text was updated successfully, but these errors were encountered: