You need to change default programs associated with the files. If you're using windows 7, you can just press start and click on 'default programs'. Others just show a generic Adobe logo and a red rectangle that says PDF. It seems random, about 60% images, 40% logos. I contacted Adobe and searched numerous forums, but can't seem to get an answer.
while going through my pdf for regular expressions, and in many places i see that some characters are replaced by square boxes which is some ASCII code
Is there any way i can fix this?
i have checked this link
and others but did not find any solution... aatched is how the square boxes look...
tripleee3 Answers
As stema said, this has nothing to do with regular expressions.
Why Did Pdf Icon Stop Showing Book Cover On Adobe For Mac
Neither is it about some 'pdf escape sequences', as PDF uses binary safe text encodings.
These square blocks are usually shown in place of some characters that doesn't have a representation in the chosen font. Often, it happens that the typesetting software replaces some quotes or other characters with a 'nicer' Unicode alternative; but the font doesn't have those characters.
You could try to copy/paste the text from the PDF into some other document and replace the font, or even use some PDF editing tools (enfocus PitStop is one of the most popular; it's cheap but not free) to replace the font with another more complete.
At first, this has nothing to do with regex, except that the document you are writing is about regular expressions.
I assume, the sequence that is replaced by a square is s
, isn't it?
I think the problem here is that some regular expression shortcuts are interpreted as escape sequences in the pdf creation process and therefor not printed literally.
You don't write how you create your pdf, but I would assume that will be OK when you escape the backslashes, when you want to print them literally.
So when you want to see a s
in the pdf, type s
in your source format. (If you have somewhere a escaped backslash you want to print like then write
).
Javier's answer is nearly complete. But let me add this:
You'll have a small chance to get Acrobat Reader display the square boxes using a 'substitute' font by toggling a certain setting in its application preferences.
IIRC, the setting is called 'Use local fonts'. You can usually find it in the Page display section of the preferences settings, but over the different releases Adobe kept adding, removing or re-locating different settings...
Background info: If you have NOT enabled Use local fonts, then you require the Reader to only use the PDF-embedded fonts for displaying all text. In case the font is embedded, but misses some required glyphs, enabling said setting may find the required font on your system to render the text, or the Reader may use its built-in Multiple Master fonts which will try to fake the look of the original glyph, more or less....
Kurt PfeifleKurt Pfeifle