"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "htmldoc/ps-pdf.cxx" between
htmldoc-1.9.12-source.tar.gz and htmldoc-1.9.13-source.tar.gz

About: HTMLDOC converts HTML and Markdown source files into indexed HTML, EPUB, PostScript, or PDF files (but doesn’t support CSS).

ps-pdf.cxx  (htmldoc-1.9.12-source):ps-pdf.cxx  (htmldoc-1.9.13-source)
skipping to change at line 70 skipping to change at line 70
#ifdef __hpux #ifdef __hpux
# undef page_t # undef page_t
#endif // __hpux #endif // __hpux
/* /*
* Output options... * Output options...
*/ */
#define HTMLDOC_ASCII85 #define HTMLDOC_ASCII85
//#define HTMLDOC_INTERPOLATION //#define HTMLDOC_INTERPOLATION
#define HTMLDOC_PRODUCER "htmldoc " SVERSION " Copyright 2011-2019 by Michael R Sweet" #define HTMLDOC_PRODUCER "htmldoc " SVERSION " Copyright 2011-2021 by Michael R Sweet"
/* /*
* Constants... * Constants...
*/ */
#define RENDER_TEXT 0 /* Text fragment */ #define RENDER_TEXT 0 /* Text fragment */
#define RENDER_IMAGE 1 /* Image */ #define RENDER_IMAGE 1 /* Image */
#define RENDER_BOX 2 /* Box */ #define RENDER_BOX 2 /* Box */
#define RENDER_LINK 3 /* Hyperlink */ #define RENDER_LINK 3 /* Hyperlink */
#define RENDER_BG 4 /* Background image */ #define RENDER_BG 4 /* Background image */
skipping to change at line 7348 skipping to change at line 7348
DEBUG_printf(("parse_comment(t=%p, left=%.1f, right=%.1f, bottom=%.1f, " DEBUG_printf(("parse_comment(t=%p, left=%.1f, right=%.1f, bottom=%.1f, "
"top=%.1f, x=%.1f, y=%.1f, page=%d, para=%p, needspace=%d\n", "top=%.1f, x=%.1f, y=%.1f, page=%d, para=%p, needspace=%d\n",
(void *)t, *left, *right, *bottom, *top, *x, *y, *page, (void *) para, (void *)t, *left, *right, *bottom, *top, *x, *y, *page, (void *) para,
needspace)); needspace));
if (t->data == NULL) if (t->data == NULL)
return; return;
if (para != NULL && para->child != NULL && para->child->next == NULL && if (para != NULL && para->child != NULL && para->child->next == NULL &&
para->child->child == NULL && para->child->markup == MARKUP_NONE && para->child->child == NULL && para->child->markup == MARKUP_NONE &&
strcmp((const char *)para->child->data, " ") == 0) para->child->data && strcmp((const char *)para->child->data, " ") == 0)
{ {
// Remove paragraph consisting solely of whitespace... // Remove paragraph consisting solely of whitespace...
htmlDeleteTree(para->child); htmlDeleteTree(para->child);
para->child = para->last_child = NULL; para->child = para->last_child = NULL;
} }
// Mark if we are at the top of form... // Mark if we are at the top of form...
tof = (*y >= *top); tof = (*y >= *top);
DEBUG_printf(("BEFORE tof=%d, *y=%.1f, *top=%.1f, *page=%d, t->data=\"%s\"\n", DEBUG_printf(("BEFORE tof=%d, *y=%.1f, *top=%.1f, *page=%d, t->data=\"%s\"\n",
skipping to change at line 11460 skipping to change at line 11460
if (fonts_used[i][j]) if (fonts_used[i][j])
write_type1(out, (typeface_t)i, (style_t)j); write_type1(out, (typeface_t)i, (style_t)j);
} }
/* /*
* Procedures used throughout the document... * Procedures used throughout the document...
*/ */
const char *version = SVERSION; const char *version = SVERSION;
fprintf(out, "%%%%BeginResource: procset htmldoc-page 1.8 %s\n", version + 4 ); fprintf(out, "%%%%BeginResource: procset htmldoc-page 1.9 %s\n", version + 4 );
fputs("/BD{bind def}bind def", out); fputs("/BD{bind def}bind def", out);
fputs("/B{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto\n" fputs("/B{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto\n"
"closepath stroke}BD", out); "closepath stroke}BD", out);
fputs("/C{setrgbcolor}BD\n", out); fputs("/C{setrgbcolor}BD\n", out);
fputs("/CM{concat}BD", out); fputs("/CM{concat}BD", out);
fputs("/DF{findfont dup length dict begin{1 index/FID ne{def}{pop pop}\n" fputs("/DF{findfont dup length dict begin{1 index/FID ne{def}{pop pop}\n"
"ifelse}forall/Encoding fontencoding def currentdict end definefont po p}BD\n", out); "ifelse}forall/Encoding fontencoding def currentdict end definefont po p}BD\n", out);
fputs("/F{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto closepath fil l}BD\n", out); fputs("/F{dup 0 exch rlineto exch 0 rlineto neg 0 exch rlineto closepath fil l}BD\n", out);
fputs("/FS{/hdFontSize exch def}BD", out); fputs("/FS{/hdFontSize exch def}BD", out);
fputs("/G{setgray}BD\n", out); fputs("/G{setgray}BD\n", out);
skipping to change at line 11549 skipping to change at line 11549
fputs(temp, out); fputs(temp, out);
fclose(prolog); fclose(prolog);
} }
else else
{ {
progress_error(HD_ERROR_FILE_NOT_FOUND, progress_error(HD_ERROR_FILE_NOT_FOUND,
"Unable to open data file \"%s\" - %s", temp, "Unable to open data file \"%s\" - %s", temp,
strerror(errno)); strerror(errno));
fprintf(out, "%%%%BeginResource: procset htmldoc-device 1.8 %s\n", versio n + 4); fprintf(out, "%%%%BeginResource: procset htmldoc-device 1.9 %s\n", versio n + 4);
fputs("languagelevel 1 eq{/setpagedevice{pop}BD}if\n", out); fputs("languagelevel 1 eq{/setpagedevice{pop}BD}if\n", out);
fputs("/SetDuplexMode{<</Duplex 3 index/Tumble 5 index>>setpagedevice " fputs("/SetDuplexMode{<</Duplex 3 index/Tumble 5 index>>setpagedevice "
"pop pop}BD\n", out); "pop pop}BD\n", out);
fputs("/SetMediaColor{pop}BD\n", out); fputs("/SetMediaColor{pop}BD\n", out);
fputs("/SetMediaType{pop}BD\n", out); fputs("/SetMediaType{pop}BD\n", out);
fputs("/SetMediaPosition{pop}BD\n", out); fputs("/SetMediaPosition{pop}BD\n", out);
fputs("/SetPageSize{2 array astore<</PageSize 2 index/ImageableArea " fputs("/SetPageSize{2 array astore<</PageSize 2 index/ImageableArea "
"null>>setpagedevice pop}BD\n", out); "null>>setpagedevice pop}BD\n", out);
fputs("%%EndResource\n", out); fputs("%%EndResource\n", out);
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)