Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all 46145 articles
Browse latest View live

Standard 14 fonts embedding

$
0
0

Hello,

 

I read several times carefully the table 111 of ISO-32000, and always bear in mind that "Beginning with PDF 1.5, the special treatment given to the standard 14
fonts is deprecated. Conforming writers should represent all fonts using a complete font descriptor. For backwards capability, conforming readers shall still provide the special treatment identified for the standard 14 fonts.
".

 

However, I found a conforming writer that produces 1.6 spec PDFs without embedding the standard fonts. The disturbing point is that it's an Adobe product.

http://www.adobe.com/security/pdfs/entrust_sample_doc.pdf

 

Maybe I'm missing something, but I can't see what.

 

So, here is my question: will my soul burn in hell if I'm guilty of writing a PDF writer that still gives to the standard 14 fonts their special treatment?


Do you want to save changes message while close pdf

$
0
0

hi everyone...

 

I am very new to PDF programming

basically I wrote my program in notepad and I saved it as .pdf format

but when I open it and try to close it..it showing me pop up like do you want to save changes..which is I dont want to happen...

 

is any one have idea what changes i have to do or how i make my file readonly....

 

thnks in advance...

PDF issue.png

PDF debugging tools?

$
0
0

Are there any pdf "debugging" tools available, and if, what are they called?

 

When trying to generate some PDF-files from scratch it is sometimes quite a bit of work trying to figure out where the problem lies if there is something wrong with the file.

Acrobat will usually just say that file has error(s) and that it can't be opened. GSview (http://pages.cs.wisc.edu/~ghost/gsview/) will give a bit more info which might help a LITTLE, but not a whole lot.

I have also tried PDF "analyzers" like for example PDF Vole (http://java.net/projects/pdfvole), which of course gives you an overview of the structure of the document, but which is not that helpful when trying to find an error in the file.

 

Can anyone suggest a good program for finding errors in a PDF-file, if such a program exists?

 

Thanks alot in advance!

Annotation is not resized

$
0
0

Hi,

 

I cannot succeed to define an annotation that is resized according to the zoom (as it should be, according to the PDF spec).

 

In the following, a square is drawn, then an annotation is defined with the same location and size as the drawn square. The square and the annotation have the same size with zoom 100%, but not with zoom 200%.

 

So how an annotation should be defined to be correctly rezised ?

 

 

%PDF-1.3

 

1 0 obj

<</Type /Pages

/Kids [3 0 R]

/Count 1

/MediaBox [0 0 300 250]

>>

endobj

 

2 0 obj

<<

/ProcSet [/PDF /Text]

>>

endobj

 

3 0 obj

<</Type /Page

/Parent 1 0 R

/Annots [5 0 R]

/Resources 2 0 R

/Contents 4 0 R>>

endobj

 

4 0 obj

<</Length 35>>

stream

0 0 1 RG

1 w

50 150 30 30 re

S

endstream

endobj

 

5 0 obj

<<

/Type /Annot

/Subtype /Text

/Contents (Foo)

/Rect [50 150 80 180]

/AP <</N 6 0 R>>

>>

endobj

 

6 0 obj

<< /Type /XObject

/Subtype /Form

/BBox [0 0 30 30]

/Resources << /ProcSet [/PDF] >>

/Length 17

>>

stream

0 0 30 30 re

f

endstream

endobj

 

7 0 obj

<<

/Type /Catalog

/Pages 1 0 R

/PageLayout /OneColumn

>>

endobj

 

xref % XREF TO BE CORRECTED

0 7

0000000000 65535 f

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

trailer

<<

/Size 7

/Root 7 0 R

>>

startxref

97882

%%EOF

Object stream and Cross reference stream

$
0
0

Hi,

 

I am creating a simple pdf which just displays letter 'A'. I created width array of Font object, as compressed object inside object stream.

I am also creating cross ref. stream which has 30 objects. One entry is of type 2 which is showing obj. id of objectstream with 0 as offset.

This pdf works fine , if i don't use object stream and cross ref. stream.

 

Here is how it looks:

 

Obj stream:

14 0 obj

<</Type/ObjStm/N 1/First 5/Filter/FlateDecode/Length 15 0 R>>stream

xœ34V0ˆ6463Sˆ

} ]

endstream

endobj

 

decoded stream is: 13 0[1366 ]

 

29 0 obj

<</Type /Catalog/Pages 28 0 R/PageMode /UseNone/PageLayout /SinglePage/OpenAction [27 0 R]>>endobj

 

Cross Ref. stream:

30 0 obj

<</Type/XRef/Size 31/W[1 4 1]/Info 21 0 R/Root 29 0 R/ID [<67e07d430c7a5c4cae26033cb3cc1e30> <67e07d430c7a5c4cae26033cb3cc1e30>]/Length 493>>stream

01 00000013  00

01 00000381  00

01 000003c2  00

01 000003e5  00

01 00000078  00

01 00000095  00

01 00000204  00

01 0000021a  00

01 000002a2  00

01 000002eb  00

01 00000321  00

01 00000405  00

02 0000000E  00

01 000004a7  00

01 000004bd  00

01 00019629  00

01 00019643  00

01 0001965d  00

01 0001978c  00

01 00019828  00

01 0001983e  00

01 0001985c  00

01 000198c8  00

01 000198de  00

01 0001993f  00

01 0001998b  00

01 00019a1f  00

01 00019a59  00

01 00019ac7  00

 

 

endstream

endobj

startxref

105159

%%EOF

 

When i open this .pdf, acrobat gives error saying root object is missing or invalid. Any help is appreciated.

 

Thanks

R

Convert text file into pdf with hebrew charcters

$
0
0

Hi,

 

I am want to convert Text files into Pdf.

In my origin file, I can get Hebrew Charcters as well.

I used this line for the basefont: "\r\n<</Type/Font/Subtype/Type1/BaseFontt/Courier/Encoding/WinAnsiEncoding>>\r\nendobj\r\ n"

I understood my Encoding is not suitable for the Hebrew charcters.

To what do I need to change this line?

 

Thanks

 

Hezi

Simple pdf file leads to wrong output color, whats wrong?

$
0
0

Hello,

 

i have a simple pdf file that just draws a rectangle filled with cmyk 1.0,0.35,0,0.28,

but the problem is, that this is not the color thats printed. Inkscape and gimp show

the wrong color too.

In the pdf file the color is selected with

1 0.35 0 0.28 K 1 0.35 0 0.28 k

so i do not know whats wrong here. Can anybody help?

 

Here is the link to the small uncompressed pdf file

http://www.opaya.de/skoepf/test.pdf

 

Content:

%PDF-1.5

%äðíø

4 0 obj

<<

/Length 133

>>

stream

q 1 0 0 1 72 769.89 cm 0 G 0 g 0 G 0 g 0 G 0 g 1 0.35 0 0.28 K 1 0.35 0 0.28 k q 0 -95 85.04 85.04 re f Q 0 G 0 g 0 G 0 g 0 G 0 g Q

 

endstream

endobj

6 0 obj

<<

/Type/ObjStm

/N 5

/First 27

/Length 357

>>

stream

5 0 3 47 7 112 2 181 1 297 <<

/ProcSet[/PDF/Text/ImageC/ImageB/ImageI]

>>

<<

/Resources 5 0 R

/Type/Page

/Parent 7 0 R

/Contents[4 0 R]

>>

<<

/Type/Pages

/Count 1

/Kids[3 0 R]

/MediaBox[0 0 595.28 841.89]

>>

<<

/Creator( XeTeX output 2014.01.08:1342)

/Producer(xdvipdfmx \(0.7.8\))

/CreationDate(D:20140108141527+01'00')

>>

<<

/Pages 7 0 R

/Type/Catalog

>>

 

endstream

endobj

8 0 obj

<<

/Type/XRef

/Root 1 0 R

/Info 2 0 R

/Size 9

/W[1 2 2]

/Length 45

>>

stream

^@^@^@ÿÿ^B^@^F^@^D^B^@^F^@^C^B^@^F^@^A^A^@^O^@^@^B^@^F^@^@^A^@Ç^@^@^B^@^F^@^B^A^B{^@^@

endstream

endobj

startxref

635

%%EOF

How to recover incomplete cmap?

$
0
0

I printed a Microsoft Word file as a PDF file by Distiller with an embed SakkalMajalla truetype font. I want to extract unicode texts from the PDF file. I found ToUnicode misses part of mapping. For example, CID 06B4 doen't have any mapping. I guess 06b4 should be mapped to U+0644. There are some substitutions in SakkalMajalla. So uni0644.medi (U+FEE0) is replaced by liga.0758.medi.alt1 (U+10354). Why can't Distiller deal with the situation? How can I recover missed mapping from PDF objects except ToUnicode? Thanks

 

P.S. I also asked the question couple days ago. Please see Re: Is it a bug of Distiller? I haven't got answers. I don't have privilege to move or delete that discussion. Sorry for asking a question in two communities.

 

 

/GS1 gs

BT

/TT1 1 Tf

24 0 0 24 513.84 764.1203 Tm

0 g

0 Tc

0 Tw

<0284>Tj

.495 .5925 TD

<0551>Tj

-.1675 -.5925 TD

<06b4>Tj

.4 .4225 TD

<0551>Tj

-.12 -.4225 TD

<024f>Tj

/TT2 1 Tf

12 0 0 12 506.58 764.1203 Tm

( )Tj

ET

 

/CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo <<

/Registry (JJEELB+TT1+0) /Ordering (T42UV) /Supplement 0 >> def

/CMapName /JJEELB+TT1+0 def

/CMapType 2 def

1 begincodespacerange <024f> <0551> endcodespacerange

3 beginbfchar

<024f> <0639>

<0284> <0649>

<0551> <064E>

endbfchar

endcmap CMapName currentdict /CMap defineresource pop end end


Best Adobe product for editing PDF, replacing English text with Thai without altering/recompressing images, graphics etc.?

$
0
0

I have an English language PDF, a medical device brochure, the content of which has already been translated into Thai (in Word). I want to replace the original English in the PDF with the Thai translation easily without altering any other aspect of the brochure, like graphics, images, margins etc. (No doubt I'll have to tweak line height, font sizes and paragraph lengths a little.) I'm unsure of what would be the best Adobe product for this purpose, e.g. Illustrator, InDesign or Acrobat (or something else), that would allow me simply to open the PDF, replace the English with Thai in an attractive Thai font (to be embedded), make minor layout tweaks, then save without any compression so the quality and colours of the original photos, artwork, and graphical elements are preserved. I've heard Office 2013 allows direct editing of a PDF but I'm not sure if it converts, alters or compresses PDF graphics in some way when first opening the file. Could anyone with relevant experience please advise? Thanks in advance.

Changing creation date on adobe acrobat 9

$
0
0

I've got a folder full of old PDF files at work. They are all labeled DD-MM-YY to signify the date they were made but the pdf's were originally in Word format and when they were all converted to PDF's, they all took that day as their created date. I'm looking for a way to change the created date on these hundreds of PDF's to match the date in the file name. Is there an easy way to do this?  I have to print the documents and organize them chronologically by date.  However, I need to also have corresponding creation dates with the documents.  I'm not good with scripting or programming however I am great at following step by step directions.  I would greatly appreciate help on this since this is a semi time sensitive project.


Thank you.

How to shading color in pdf

$
0
0

using Shading Dictionary to perform shading in pdf,before that the shading dictionary call from Pattern Dictionary.In the Pattern Dictionary there is an Matrix based on the matrix value  location the shading operation is perform,So i dont know how to calculate value of pattern Dictionary matrix value.

 

10 0 obj

<<

/Type /Pattern

/PatternType 2

/Shading 11 0 R

/Matrix [1.00 .00 .00 1.00 54.00 53.00]  // the matrix value how to calculate

>>

11 0 obj

<<

/ColorSpace /DeviceRGB

/Function 12 0 R

/ShadingType 2

/Coords [109.2726 69.00 109.2726 .00]

/Extend [true true]

>>

12 0 obj

<<

/FunctionType 0

/Domain [.00 1.00]

/Range [.00 1.00 .00 1.00 .00 1.00]

/Size [1002]

/BitsPerSample 8

/Length 3006

>>

stream

here is an stream of colors

endstream

endobj

 

 

 

 

 

 

Can anybody help me please.

 

 

Regards,

Sasi kumar sekar.

HP Harlequin rips generating error processing PDF file

$
0
0
Hi all,

I'm a programmer for a company that prints books based on customer uploaded data that we use to generate PDF files. We process the PDF files for printing on HP Indigo presses, which use the Harlequin rips to rasterize the PDF file for the press. Occasionally a PDF file fails to get ripped, and the system generates an error file about why it failed. However, this file is not very precise about what the problem is, which makes it difficult for me to fix our upstream process that generates the PDF files. Here is a sample of an error file generated by the rip:

Starting Job On Friday, December 14, 2007 4:33:02 PM
Using Color Setup "HPIndigoPhotobook_sRGB"
FontEmulation enabled
Using device calibration from profile `HPIndigoPhotobook'
Ripping file %SRS-NAS02/prerip%/ripinput/SRSRIP9-1/Press5/IndigoPhotobook/book_file.pdf as PDF.
PDF version 1.5
Title: Not Available
Subject: Not Available
Author: Not Available
Keywords: Not Available
Creator: Not Available
Producer: PDFlib+PDI 6.0.2 (Python 2.3.4/Linux)
CreationDate: D:20071214162047-05'00'
ModDate: D:20071214163200-05'00'
Trapped: Not Available
%%[ Warning: Font Arial Bold emulated. ]%%
%%[ Error: stackunderflow; OffendingCommand: pop; File: %ip:Press5_IndigoPhotobook% ]%%
%%[ Error: invalidrestore; OffendingCommand: Do(PDF); File: %ip:Press5_IndigoPhotobook% ]%%
Total time: 0 seconds
%%[ Flushing: rest of job (to end of file) will be ignored ]%%
Job Not Completed: book_file.pdf

In general all of the errored jobs have lines in the error file about this OffendingCommand: Do(PDF); but I have no idea what this means. If anyone has any ideas, insight, suggestions, I'd very appreciative to know them.

Thanks in advance,
Doug Farrell

Create unicode supported pdf

$
0
0
Hallo,

Please tell me how do i create a unicode pdf file with VB.

I need to know the structure of those PDF files

Thanks

az

Prefixes for embedded subset fonts

$
0
0
The specification says that embedded subset fonts must have their names prefixed with six uppercase letters plus "+". For example ACBCDEF+Arial. In every PDF document I look at, the six characters are fairly random sequences. Is there any reason not to just do something much simpler, such as "AAAAAA+Arial", "AAAAAB+TimesNewRoman", etc.? IOW, do the semi-random prefixes I see elsewhere really add any value?

The only thing I can think of is that maybe the prefixes need to be unique not just within a single PDF, but across multiple PDFs. The specification hints at that when it mentions merging PDF documents with incompatible font subsets, but I don't know whether that is actually an issue? So far as I can see the specification doesn't actually require uniqueness of prefixes at all, except to distinguish between two subsets of the same font within a single PDF.

My guess is that the prefixes I see are derived from the set of characters in the subset (some kind of checksum/hash), which would give a reasonable chance of two different subsets having different prefixes. But if that is the case, surely there should be a standard (documented) way of deriving the prefixes, to ensure that different PDF generators don't inadvertently use the same prefix for different subsets?

I just had another thought - are the prefixes maybe used by printers that cache embedded fonts to know that they can re-use a cached font subset? If so, that would effectively require that the prefixes are unique across multiple documents.

Accessing embedded fonts in PDF files

$
0
0
I am currently engaged in developing an application which works on EMF files which are created from PDFs. These contain references to embedded fonts (partial I believe). It all works fine while Acrobat is open and the temp fonts are still loaded in memory, but as soon as it is shut down the font disappears and EMF file is not displayed correctly.

What I need is to somehow extract the font information and use it in conjunction with the EMF file programatically.

I have been digging about in the minefield of font handling but not come up with a solution. As a long shot I thought I would ask here :-)

Here's hoping

Cheers

Roj

PDF Version Specification Question...

$
0
0
I was using Epson Scan software with an Epson Perfection 4490 to scan documents directly to a PDF. I noticed that the PDF files that are created are the version 1.0 specification. They are actually copies of genealogy documents...all B&W with no need to be edited or anything. I basically only need an archived digital copy of the documents with no need for any of the features of the newer versions. Is there any reason not to continue using the 1.0 spec? Will it continue to be fully compatible with newer versions of Adobe Reader? Thanks.

Preflight errors for PDF/A-1a

$
0
0
We are encountering problems with preflight when we testing documents that use CID fonts with our conversion product . We get the following error messages:

CIDSystemInfo and CMap dict not compatible

Invalid WMode

Having examined the output carefully, there does not appear to be a problem in out output. The CIDSystemInfo for both the CIDFont object and the CMap object are exactly the same. Additionally, we are not writing a WMode into our fonts, since it is an optional entry, and we do not handle vertical writing mode anyway. Adding a WMode parameter in the appropriate places does not fix the error anyway.

What I suspect is happening is that Preflight is not happy with the Registry and Ordering that we are using in the CIDSystemInfo. We set the Registry to "CompanyName" and the Ordering to "Custom1". I have seen other tools complain when faced with unexpected values for the registry and Ordering, and have a feeling that is what is going on here, but our customers aren't going to be happy hearing that.

Here is some background on how our documents are created. We create our text stream using the character code from the original document. We then add each unique character code to a set of character codes. When document processing is complete, we subset the font to only the used characters. We can then create a CMap that maps the input character code to the glyph index in the subsetted font. The glyph index becomes the CID in our encoding. The CIDToGIDMap is "Identity". We also then create a ToUnicode map with the original character code mapped to Unicode.

Documents created by our product view just fine, and text is able to be extracted correctly. Our problem lies in the error messages reported by Preflight.

Any help with diagnosing this error would be greatly appreciated. I would be willing to send s sample document to anyone willing to help.

Thanks,
Michael Ryan

XRef Stream

$
0
0
I've noticed that the new cross reference stream isn't as nice to me as the 1.4 version.  I've deflated the stream and don't make too much sense of how to get my object file offsets.  Here is my deflated stream, with the last column as the actual offset of the object:<br /><br />  2   1   0  16   0      16<br />  2   0   2 204   0      732<br />  2   0   1  81   0      813<br />  2   0   1 243   0      1056<br />  2   0   4 169   0      2249<br />  2   0   4   3   0      3276<br />  2   0   3 162   0      3950<br />  2   0   3 177   0      4639<br />  2   0   2 184   0      5335<br />  2   0   3 147   0      5994<br />  2   0   3  28   0      6790<br />  2   0   3 205   0      7507<br />  2   0   3 155   0      8430<br />  2   0  11 132   0      11122<br />  2   0   4 187   0      12077<br />  2   0  13 210   0      15615<br />  2   0  29 192   0      22975<br />  2   0   6   1   0      24512<br />  2   0 161 180   0      116<br />  2   1   0 180   0      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2   0   0   0   1      0<br />  2 255   1 199 247      ?<br /><br />Here's the object's dictionary:<br /><br /><</DecodeParms<</Columns 4/Predictor 12>>/Filter/FlateDecode/ID[<D9BDC6BB569A27F16BC08812ED6B5F60><593D651B79E5804F83C6FFB75E7 2EF81>]/Index[37 30]/Info 36 0 R/Length 90/Prev 53802/Root 38 0 R/Size 67/Type/XRef/W[1 2 1]>>stream<br /><br />Do I need to deflate the stream differently?  I'm just using the plane jane DeflateStream object in .NET.  Do I need to massage the data with the PNG predictor? I've tried converting columns 3 & 4 to HEX and then add the previous rows result, it works for the second row, but breaks there after.<br /><br />Any ideas? <br /><br />Thanks.

Sign HTTP request in interactive PDF form

$
0
0

I know that is possible to send HTTP request from PDF form. I know that is possible to sign whole PDF and submit it.

But I want to sign some XML and send it from PDF as HTTP request. Is it possible?

 

Thanks in advance

Denis

Softmask and knockout

$
0
0

The attached PDF (distilled from the attached PS with PDFMark):

  • paints a CMYK background of 1 0 0 0.
  • paints a knockout and isolated transparency group which in turn:
    • paints a rectangle with a CMYK fill of 1 1 0 0
    • sets a softmask derived from luminosity consisting of two squares which are 0.7 and 0.5 gray respectively
    • paints a circle in 0.7 gray

 

The resulting PDF seemingly cuts out the circle of the rectangle before applying the softmask to the circle (changing the AIS flag seems to have no effect). Setting AIS to true (as in the attached PDF) I would expect the softmask to limit the knockout to where the softmask has an alpha > 0 (the two squares). Moving the softmask setting and painting the circle into a non-knockout/isolated transparency group by itself does not change the appearance.

 

Is there any way to structure the PDF file so that the softmask limits the knockout of the circle with respect to the rectangle?

Viewing all 46145 articles
Browse latest View live