将字符转换成PDF [英] escaping characters for substitution into a PDF

查看:156
本文介绍了将字符转换成PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我一组PDF文件的控制字符,以及如何解除它们?我有一个(非放气的(膨胀的))PDF文件,我想编辑文本,但我害怕用括号和东西意外地做一些控制序列。

Can anyone tell me the set of control characters for a PDF file, and how to escape them? I have a (non-deflated (inflated?)) PDF document that I would like to edit the text in, but I'm afraid of accidentally making some control sequence using parentheses and stuff.

谢谢。

推荐答案

好吧,我想我找到了。在 PDF 1.7规格(PDF链接)的第15页,似乎只有字符我需要担心的是括号和反斜杠。

Okay, I think I found it. On page 15 of the PDF 1.7 spec (PDF link), it appears that the only characters I need to worry about are the parentheses and the backslash.


Sequence | Meaning
---------------------------------------------
\n       | LINE FEED (0Ah) (LF)
\r       | CARRIAGE RETURN (0Dh) (CR) 
\t       | HORIZONTAL TAB (09h) (HT)
\b       | BACKSPACE (08h) (BS)
\f       | FORM FEED (FF)
\(       | LEFT PARENTHESIS (28h)
\)       | RIGHT PARENTHESIS (29h)
\\       | REVERSE SOLIDUS (5Ch) (Backslash)
\ddd     | Character code ddd (octal)

希望这对某人有帮助。

这篇关于将字符转换成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆