I'm using `ebook-convert` to convert an epub (generated from a basic custom calibre recipe) into a pdf. The command looks basically like:
With version 6.17.0 and earlier this was working perfectly, but with the latest version 6.18.1, the pdf generated contained text that is "white" or without colour. You cannot see the text in the PDF viewer (in my case, in macOS Preview) but if you do a "select-all", you can see the "invisible" text being selected.
I've attached the pdf output from 6.18.1 and 6.17.0 as well as the epub.
calibre version: 6.18.1
OS: Ubuntu 22.04.2 LTS, macOS Big Sur 11.7.5
Code:
ebook-convert example-calibre6.18.1.epub example6.18.1.pdf --pdf-page-numbers --series=Test
I've attached the pdf output from 6.18.1 and 6.17.0 as well as the epub.
calibre version: 6.18.1
OS: Ubuntu 22.04.2 LTS, macOS Big Sur 11.7.5
Code:
DeDRM v10.0.3: Trying to decrypt example-calibre6.18.1.epub
DeDRM v10.0.3: Verifying zip archive integrity
DeDRM v10.0.3: Post-processing took 0.0 seconds
DeDRM v10.0.3: Finished after 0.1 seconds
Conversion options changed from defaults:
series: 'Test'
pdf_page_numbers: True
DeDRM v10.0.3: Trying to decrypt 1_bkwyyf.epub
DeDRM v10.0.3: Verifying zip archive integrity
DeDRM v10.0.3: Post-processing took 0.0 seconds
DeDRM v10.0.3: Finished after 0.0 seconds
1% Converting input to HTML...
qt.webenginecontext:
GL Type: disabled
Surface Type: DefaultRenderableType
Surface Profile: CoreProfile
Surface Version: 4.1
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes
Init Parameters:
* application-name calibre
* browser-subprocess-path /Applications/calibre.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess
* disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture
* disable-gpu
* disable-speech-api
* enable-features NetworkServiceInProcess,TracingServiceInProcess
* enable-threaded-compositing
* in-process-gpu
* use-gl disabled
InputFormatPlugin: EPUB Input running
on /var/folders/kr/bxxq54x51l714b1mrzyj0t1h0000gn/C/calibre_6.18.1_tmp_61l4ym7_/hw66hrhh.epub
Found HTML cover titlepage.xhtml
Parsing all content...
Referenced file 'feed_1/index.html' not found
34% Running transforms on e-book...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Cleaning up manifest...
Trimming unused files from manifest...
Creating PDF Output...
67% Running PDF Output plugin
Failed to parse as XML, parsing as tag soup
68% Parsed all content for markup transformation
Link anchor: feed_0/index.html#article_3 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_3 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_4 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_4 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_2 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_2 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_0 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_0 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_1 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
Link anchor: feed_0/index.html#article_1 not found, linking to top of file instead
Link anchor: index_u3.html#feed_0 not found, linking to top of file instead
70% Completed markup transformation
90% Rendered all HTML as PDF
91% Added links to PDF content
93% Adding headers and footers
96% Headers and footers added
Merged 4 instances of AAAAAA+Times-Bold reducing size from 27.6 KB to 15 KB
Merged 2 instances of BAAAAA+Times-Roman reducing size from 9.4 KB to 7.8 KB
Merged 4 instances of CAAAAA+Times-Roman reducing size from 19.4 KB to 12.5 KB
Merged 2 instances of AAAAAA+Helvetica-Bold reducing size from 9.4 KB to 7.8 KB
Merged 2 instances of BAAAAA+Times-Bold reducing size from 10.7 KB to 9.1 KB
Merged 2 instances of DAAAAA+Times-Bold reducing size from 22.3 KB to 19.1 KB
Merged 4 instances of EAAAAA+Courier reducing size from 42.8 KB to 29.7 KB
Merged 4 instances of FAAAAA+Times-Roman reducing size from 50.1 KB to 25.1 KB
Merged 2 instances of BAAAAA+Courier reducing size from 10.8 KB to 10.7 KB
Merged 2 instances of CAAAAA+Helvetica-Bold reducing size from 9.9 KB to 8.3 KB
Merged 2 instances of DAAAAA+Helvetica-Oblique reducing size from 7.9 KB to 6.3 KB
Merged 6 instances of EAAAAA+Times-Bold reducing size from 48.2 KB to 18.5 KB
Merged 2 instances of GAAAAA+Times-Bold reducing size from 9.6 KB to 8.1 KB
Merged 8 instances of AAAAAA+Helvetica-Oblique reducing size from 37.6 KB to 7.7 KB
Merged 8 instances of BAAAAA+Helvetica-Bold reducing size from 39.7 KB to 8.3 KB
Merged 8 instances of CAAAAA+Times-Bold reducing size from 73 KB to 21.9 KB
Merged 6 instances of DAAAAA+Times-Roman reducing size from 82.2 KB to 27.9 KB
Merged 6 instances of FAAAAA+Times-Bold reducing size from 38.3 KB to 15.8 KB
Merged 2 instances of DAAAAA+Times-Italic reducing size from 16.7 KB to 15 KB
Merged 2 instances of EAAAAA+Times-Roman reducing size from 25.4 KB to 22.2 KB
Merged 2 instances of AAAAAA+Times-Roman reducing size from 8 KB to 7.4 KB
100% Updated metadata in PDF
PDF output written to /Users/me/Downloads/calibre_debugging/example6.18.1.pdf
Output saved to /Users/me/Downloads/calibre_debugging/example6.18.1.pdf