Commit Briefs

325fd0ff80 Sven M. Hallberg

explicitly cast some strings to (uint8_t *) (pagecontent)


f96777db7d Sven M. Hallberg

consistently use (uint8_t *) as string type in act_txtobj


6844db8427 Sven M. Hallberg

content stream todos


653c9a034f Sven M. Hallberg

skip leading whitespace in rule a85zero

This matches the other rules. An ASCII85-encoded stream may begin with arbitrary whitespace.


0cb8c6a3ba Sven M. Hallberg

use nnn (number, non-negative) in appropriate places


831d00839d Sven M. Hallberg

paths must begin with an "m" or "re" operator


262d9e719a Sven M. Hallberg

cast a string literal to (uint8_t *)


78546a6676 Sven M. Hallberg

ignore .o and test .out files


a43d4f6085 Sven M. Hallberg

move HBytes utilities to util.c


74704bb3e8 Sven M. Hallberg

comment


8547d3116b Sven M. Hallberg

ignore stream /Type when parsing content streams


53d31efb90 Sven M. Hallberg

add dumpcstream (-d c)


4e73234b1d Sven M. Hallberg

fix argument representation for act_op


d48e4545cb Sven M. Hallberg

clean objects


c0a508241b Sven M. Hallberg

support multiple oids on the command line


5772a2bc0c Sven M. Hallberg

include requested object id in error message


ea6ac09d25 Sven M. Hallberg

unify loops in act_txtobj

Instead of counting the space that will be needed for the concatenated string, use a dynamically-grown buffer. We use malloc/realloc for the growing buffer, because h_arena_realloc() is, at this time, very inefficient. After the loop, we copy the whole string into the arena at once and free the buffer.


aded37ad86 Sven M. Hallberg

remove unused member obj from TextEntry


90b9b68968 Sven M. Hallberg

remove now unused member tobj from struct textstr


bb733eee47 Sven M. Hallberg

comment fix


8d578a0f6e Sven M. Hallberg

remove unused helper basename

I think this must have been left over from an earlier refactoring of text_extract().


462a9a8013 Sven M. Hallberg

move opening/closing of xfile into main


470927252f Sven M. Hallberg

remove -X

According to Sumit, this was mainly meant as a temporary debugging aid anyway, so simplify the code a lot by removing the big extra loop.


dae44186d6 Sven M. Hallberg

only walk TextEntry objects in text_extract for font-info path

For the regular text extraction (without printing interspersed font info), the top-level "text" field of struct textstr seems to be fine. So only use the explicit loop if "outfn2" (i.e. -X) is given.


fa8f1e7fda Sven M. Hallberg

make nchars a size_t

Why did this have an explicitly sized type before?