summaryrefslogtreecommitdiff
path: root/pdf
AgeCommit message (Collapse)Author
2012-08-07Forms: simple appearance generation for choice widgetsPaul Gardiner
2012-08-07When updating an xobject's contents also reset the LengthPaul Gardiner
2012-08-07Forms: for choices with a single selection avoid an unnecessary arrayPaul Gardiner
Also delete the 'I' element to avoid the indexes and values disagreeing.
2012-08-07Forms: mark choice field dirty after value change (and fix error handling)Paul Gardiner
2012-08-03Forms: move javascript utility filePaul Gardiner
2012-08-02Fix bug in writing of strings: backslash not quotedPaul Gardiner
2012-08-02Forms: add document dirty flagPaul Gardiner
2012-08-02Add missing virtual function setupPaul Gardiner
2012-08-01Merge branch 'master' into formsPaul Gardiner
Conflicts: pdf/mupdf-internal.h pdf/pdf_font.c
2012-08-01Enable pdf_print_xref in release builds; required for pdfshow.Robin Watts
Previously this had been disabled other than in DEBUG builds under the belief that it was only used for debugging.
2012-07-26Handle negative or invalid character ranges in type3 fonts.Tor Andersson
Add same guard clause as used for regular fonts.
2012-07-26Use integer clamping function instead of reimplementing itSebastian Rasmussen
2012-07-26Assume default value for negative sample function dimension sizeSebastian Rasmussen
2012-07-26Only resize xref if trailer size entry indicate more objectsSebastian Rasmussen
This will gracefully handle negative size entries as well, as these would not grow the xref.
2012-07-26Gracefully handle negative xref stream object range boundariesSebastian Rasmussen
An xref stream describes objects within a range of object numbers. Fail if either of these are negative.
2012-07-26Assume default values for negative image parametersSebastian Rasmussen
If predictor, number of columns, number of colors or bits per component is negative assume default value.
2012-07-26Gracefully handle negative xref stream offsetsSebastian Rasmussen
2012-07-26Gracefully handle negative offset and objects in object streamSebastian Rasmussen
Previously a negative offset of the first object in an object stream or a negative number of objects in an object stream would cause a huge allocation. Detect and throw exception on negative values.
2012-07-26Gracefully handle negative xref stream entry widthsSebastian Rasmussen
In an xref stream each entry (type, offset and generation) may be of varible width. Warn if these are negative and assume that they are not present.
2012-07-24Add upper bound on size of sampled pdf functionsSebastian Rasmussen
Previously sampled pdf functions having an overflow in the number of samples were never caught until the memory allocator was triggered. Now there is an upper bound of 100Mbyte (the same as for fz_read_all()).
2012-07-24Handle out of range pdf subfunction boundariesSebastian Rasmussen
Any pdf function with incorrect number of subfunction boundaries will either cause an exception or have excessive boundaries be ignored.
2012-07-24Handle exponential pdf functions with malformed constantsTor Andersson
Any pdf functions with incorrect number of constants will have their constant values set to default values. Any excessive constants are ignored.
2012-07-23Warn about out of range values for exponential pdf functionsSebastian Rasmussen
Exponential pdf functions have constraints on their input values so warn about out of range values when loading those functions. When evaluation the functions, assume zero without warning.
2012-07-23Handle sampled pdf function dimensionalitySebastian Rasmussen
Functions that have excessive dimension sizes will have those sizes ignored, whereas functions that have too few dimension sizes will cause an exception.
2012-07-23Handle pdf functions with malformed input/output mappingsSebastian Rasmussen
After this pdf functions that have malformed Decode/Encode arrays with too few/many entries compared to the number of inputs/outputs will be handled more gracefully. Those missing mappings will be set to default values.
2012-07-23Handle pdf function evaluation with wrong number of inputs/outputsSebastian Rasmussen
Functions requiring more inputs than available input values will have those inputs set to zero. Similarly functions producing too few outputs will have the remaining output values be set to zero. Any excessive input values or output values will be ignored.
2012-07-23Handle pdf functions with too many inputsSebastian Rasmussen
Both exponential and stitching functions are limited to having one input. Make sure that any excessive inputs are ignored.
2012-07-23Provide number of inputs/outpus when loading pdf functionsSebastian Rasmussen
This will allow the loading of pdf functions to validate that a pdf function has the correct number of inputs/outputs. Additionally it will allow for handling pdf functions with incorrect number of inputs/outputs.
2012-07-23Clamp number of pdf function inputs/outputsSebastian Rasmussen
Previously a pdf function having too many inputs or outputs would cause and exception, now they will be handled silently. There are two places pdf functions are used: for shadings and for colorspace tint transforms. In both cases the number of inputs/outputs may never be more than the number of components, i.e. limited to MAXN. Additionally the number of inputs/outputs may never be less than than the number of components, and there is always at least one component.
2012-07-23Remove redundant check in pdf function codeSebastian Rasmussen
BitsPerSample is already screened later in the code for invalid values, including the default value 0 returned by pdf_to_int().
2012-07-23Whitespace fixes in code for pdf functions.Sebastian Rasmussen
2012-07-23Fix encryption key length checkSebastian Rasmussen
Encryption keys lengths are expressed in bits, however one check assumed the length was expressed in bytes.
2012-07-23Prefer larger Width value if more than one is given for each glyph.Tor Andersson
Fixes bug #692267
2012-07-23Fallback case for type 1 fonts without encoding and non-standard glyph names.Tor Andersson
Fixes bug #692289
2012-07-23Tweak some font encoding heuristics.Tor Andersson
Always use BaseFont, always ignore font descriptor's FontName.
2012-07-23Only warn if ToUnicode CMap cannot be loaded.Tor Andersson
2012-07-23Don't encode MS-Symbol encoded fonts by glyph names.Tor Andersson
Fix bug http://code.google.com/p/sumatrapdf/issues/detail?id=1618
2012-07-23Use FT_ENCODING_MS_SYMBOL encoding for symbolic TrueType fonts.Tor Andersson
Fixes http://code.google.com/p/sumatrapdf/issues/detail?id=1815
2012-07-20Give precedence to /Subtype field when deciding on font encodings.Tor Andersson
Fixes bug where Symbol is not embedded but encoded as a TrueType but the built-in font is a Type1. http://code.google.com/p/sumatrapdf/issues/detail?id=1310
2012-07-20Prefer the more specific name if BaseName and FontName differ.Tor Andersson
Also strip the subset prefix.
2012-07-20Pass original font name to fz_new_font from PDF interpreter.Tor Andersson
Improves text device output when using substitute fonts. Fixes bug #693019.
2012-07-20Attempt to load CID fonts with invalid cid collections.Tor Andersson
Warn instead of throwing an error. Fixes file in http://code.google.com/p/sumatrapdf/issues/detail?id=1842
2012-07-19Forms: fix pdf_text_stride not handling negative values of 'room'Paul Gardiner
room can become negative after a character has been forced into a thin text field
2012-07-18Fix broken pdf_write functionality.Robin Watts
Since I implemented linearisation, any invocation that hasn't used garbage collection has produced broken files, due to every object being marked as freed. This was because I'd forgotten to ever set the use_list markers to be 1. Fixed here.
2012-07-18Forms: convert strings from pdf to utf8 before passing to the js enginePaul Gardiner
2012-07-18Update pdf_to_utf8 to handle either a stream or a stringPaul Gardiner
Also change first argument from fz_context to pdf_document in each of pdf_to_utf8, pdf_to_utf8_name, pdf_to_ucs2 and pdf_to_ucs2_name
2012-07-18Forms: partial handling of utf8 output from javascriptPaul Gardiner
2012-07-17Forms: implement library api for handling list boxes and combo boxesPaul Gardiner
2012-07-17Forms: remove unhelpful type distinctionPaul Gardiner
2012-07-17Forms: protect agains recursion during internal field recalculationPaul Gardiner