[pdf4st] Testing a PDF document

  • From: "Christian Haider" <Christian.Haider@xxxxxxxxxxxxxxxxxxxxxxx>
  • To: <pdf4st@xxxxxxxxxxxxx>
  • Date: Fri, 20 Apr 2012 16:08:58 +0200

Submitted by bobn on Mon, 2012-01-09 12:46

When Adobe Reader is used to print some of the documents created with
pdf4smalltalk a warning pops up... 

An error exists on this page. Acrobat may not display the page correctly

Please contact the person who created the PDF document to correct the 

problem.

The document displays and prints correctly. Aside from using PDFExplorer
to walk the document manually, is there some tool or technique to figure
out what Adobe Reader is complaining about? 


Re: Testing a PDF document


Submitted by ChristianHaider on Mon, 2012-01-09 14:05.

Unfortunately, I don't know any free tools for this. But I am sure that
there are commercial ones doing so called pre-flights, i.e. simulating
printing of a PDF and showing all inconsistencies or errors. 

Could you attach the problematic PDF so that I could have a look? Maybe
I see something. 


Fixed with text nesting


Submitted by bobn on Fri, 2012-01-13 19:28.

The problem was fixed by changing from multiple #textMatrix: in one
#textObjectDo: to one #textObjectDo: per #textMatrix: 

renderer textObjectDo: [
  renderer setFont: #Helvetica size: 1.
  renderer textMatrix: #(4 0 0 4 50 50); showString: '(50 50)'. 
  renderer textMatrix: #(2 0 0 2 -50 50); showString: '(-50 50)'].

...replaced with... 

  renderer textObjectDo: [
    renderer setFont: #Helvetica size: 1.
    renderer textMatrix: #(4 0 0 4 50 50); showString: '(50 50)'].
  renderer textObjectDo: [
    renderer setFont: #Helvetica size: 1.
    renderer textMatrix: #(2 0 0 2 -50 50); showString: '(-50 50)'].

 

Other related posts:

  • » [pdf4st] Testing a PDF document - Christian Haider