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

Scanline throws CoreGraphics PDF error #42

Open
aixakt opened this issue Jul 8, 2022 · 3 comments
Open

Scanline throws CoreGraphics PDF error #42

aixakt opened this issue Jul 8, 2022 · 3 comments

Comments

@aixakt
Copy link

aixakt commented Jul 8, 2022

Hi,

on MacOS Ventura scanline throws CoreGraphics PDF error, regarding image orientation.

Best regards
Ralph
scanline_coregraphiccs_error

@klep
Copy link
Owner

klep commented Jul 22, 2022

Thanks for reporting the issue. I don't have a machine running Ventura currently, but if you can set that variable, I'd love to see what it says:

CG_PDF_VERBOSE=1 scanline -v

@klep klep changed the title Scalene throws CoreGraphics PDF error Scanline throws CoreGraphics PDF error Jul 22, 2022
@aixakt
Copy link
Author

aixakt commented Jul 24, 2022 via email

@klep
Copy link
Owner

klep commented Jul 30, 2022

Hi Ralph,

I do see that message on Ventura Betas as well, though it doesn't appear to actually cause any issues. Are you experiencing any problems as a result? I did try to find a way around it, but it appears that the scanner is creating a JPEG without orientation information and PDFPage doesn't like that. Changing the underlying format to TIFF makes the message go away, but increases the file size. There may be a way to provide the metadata that PDFPage is expecting, but I don't see any documentation on what that is. Some trial-and-error came up empty.

For now, if it's not causing any problems, let's wait and see if it's still an issue in the Ventura RC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants