Comments (2)
Hi @MarcWeber ,
Thank you for opening this issue. The concern was that the page Resources
data in your file was a reference and should have been dereferenced (but wasn't).
I am pushed a fix, and will publish soon.
I hope this helps.
Good luck,
Bo.
from combine_pdf.
Works. but only with (false).
if (limit_to_type0 || f[:Subtype] == :Type0) && f[:Type] == :Font && !fonts_array.include?(f)
My results:
Scribus created PDF
Preferences -> Fonts -> [ ] Subset by that font
Didn't find ToUnicode object for {:Type=>:F....
-> failure
libre office:
script.rb:30:in []': no implicit conversion of Symbol into Integer (TypeError) from script.rb:30:in
block (2 levels) in fonts'
from script.rb:29:in each' from script.rb:29:in
block in fonts'
from script.rb:22:in each' from script.rb:22:in
fonts'
from script.rb:46:in `
I monkey patched that function line 30 is:
f = f[:referenced_object] if f[:referenced_object]
Adding this guard makes it work:
r.values.each do |f|
next if f.class == Integer
Now I have an ΓΌ and the turkish special umlauts :) Job complet.
Thank you very much!
Libre Office file pdf file: https://mawercer.de/tmp/tmp/lo.pdf
I was close to trying pdfbox or itext.
from combine_pdf.
Related Issues (20)
- How to PDF Encrypted Property Change ??
- Line break is not working HOT 1
- Parsing specific PDF in 1.0.21 - RangeError: index out of range (works in 1.0.20) HOT 6
- General PDF error - Combine PDF fails on specific PDF file HOT 1
- Seeking maintainers?
- How to use Arial black font in pdf?
- Fuzzer + various crashes
- SystemStackError: stack level too deep for docx file HOT 1
- Broken when parsing PDF with empty object
- Element missing error when rendering
- CombinePDF.parse is unable to process some PDF files
- Smart links are not updating or working in the combine process
- no implicit conversion of Symbol into Integer when using fonts()
- Combine many files at the same time and memory usage
- Web optimized PDFs improperly parsed
- center watermark HOT 1
- ParsingError: Optional Content PDF - with some PDF files uploaded HOT 5
- Couldn't connect reference
- paragraph text is collapsing when trying to combine file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combine_pdf.