summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w')
-rw-r--r--Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w9
1 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w b/Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w
index 3c6b6f6efbf..64a36dc67bf 100644
--- a/Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w
+++ b/Build/source/texk/web2c/luatexdir/pdf/pdfliteral.w
@@ -66,6 +66,9 @@ void pdf_out_literal(PDF pdf, halfword p)
pdf_end_string_nl(pdf);
ps->need_tm = true;
break;
+ case direct_raw:
+ pdf_end_string_nl(pdf);
+ break;
default:
normal_error("pdf backend","bad literal mode");
break;
@@ -114,6 +117,9 @@ void pdf_literal(PDF pdf, str_number s, int literal_mode, boolean warn)
} else if (str_in_cstr(s, "page:", strlen("PDF:"))) {
j = j + (pool_pointer) strlen("page:");
literal_mode = direct_page;
+ } else if (str_in_cstr(s, "raw:", strlen("PDF:"))) {
+ j = j + (pool_pointer) strlen("raw:");
+ literal_mode = direct_raw;
} else {
literal_mode = set_origin;
}
@@ -131,6 +137,9 @@ void pdf_literal(PDF pdf, str_number s, int literal_mode, boolean warn)
pdf_end_string_nl(pdf);
p->need_tm = true;
break;
+ case direct_raw:
+ pdf_end_string_nl(pdf);
+ break;
default:
normal_error("pdf backend","bad literal mode");
break;