[wp-trac] [WordPress Trac] #31050: Better PDF Upload Management
WordPress Trac
noreply at wordpress.org
Wed Feb 24 19:01:58 UTC 2016
#31050: Better PDF Upload Management
-------------------------------------------------+-------------------------
Reporter: celloexpressions | Owner:
Type: feature request | markoheijnen
Priority: normal | Status: assigned
Component: Media | Milestone: 4.5
Severity: normal | Version:
Keywords: has-patch dev-feedback needs-unit- | Resolution:
tests needs-testing | Focuses: ui
-------------------------------------------------+-------------------------
Comment (by markoheijnen):
In general the patch is really good however when a PDF isn't correctly
build, the images will be broken. I have tried to run several imagick
methods to test things out but couldn't get closer to the answer. Using
`mergeImageLayers(Imagick::LAYERMETHOD_FLATTEN)` broke a PDF that normally
did work for me. When using `identifyImage` the only difference was the
type. but forcing the broken one to another type didn't work either.
Below the warnings that imagemagick will output for the broken PDF.
{{{
**** Warning: can't process font stream, loading font by the name.
**** Error reading a content stream. The page may be incomplete.
**** File did not complete the page properly and may be damaged.
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> Microsoft: Print To PDF <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31050#comment:43>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list