Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Printing with PDFExporter (Read 8700 times)
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Printing with PDFExporter
Oct 27th, 2011 at 1:50pm
Print Post  
I am using .NET 3.5 with the NetDiagram trial. When I use the PDFExporter class to create a PDF of my diagram, it produces always produces an error:

%%[ Error: undefined; OffendingCommand: limitcheck ]%%

I am getting this error regardless of the type of printer or if I use the Adobe PDF writer.

How do I resolve this error?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Printing with PDFExporter
Reply #1 - Oct 27th, 2011 at 2:22pm
Print Post  
What exactly shows this error? Is it from the details of some exception?
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #2 - Oct 27th, 2011 at 2:23pm
Print Post  
This is from the PDF Printer driver. For the actual physical printers, it prints about 1/2 of the diagram and then prints a sheet with this error.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Printing with PDFExporter
Reply #3 - Oct 27th, 2011 at 2:38pm
Print Post  
From this it seems there is some kind of limit associated with length of PDF graphics paths:
ftp://ftp.corel.com/pub/CorelDRAW/DRAW3Suite/2023.txt

Are you using any curved shape or a shape with more complex outline? If you follow the "Find the offending object" method described above, can you identify which node or link causes the error? In the diagram case, it should be the node one position higher in the Z order than the last item printed successfully.
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #4 - Oct 27th, 2011 at 7:41pm
Print Post  
The error appears to occur after 40 rectangles have been inserted (I create 4 rectangles at a time, and created 10 copies. At 11 copies, I get the error). Here's how I lay the rectangles out:

topRectangle -> header rectangle
-> description rectangle
-> detailed info rectangle

The header, description, and detailed info rectangle shapes are attached to topRectangle using AttachTo with percentages specified for the location. Each rectangle has text specified (no special characters). There are no diagramlinks or any other shapes in the diagram.

I then export a visio file an a pdf file using the appropriate exporter classes.

I can send a copy of the code via private message if that will help.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Printing with PDFExporter
Reply #5 - Oct 28th, 2011 at 7:42am
Print Post  
I cannot reproduce it by exporting only rectangular nodes with text. Could you email a saved diagram xml file to support@mindfusion.eu?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Printing with PDFExporter
Reply #6 - Oct 28th, 2011 at 12:52pm
Print Post  
Does PDF Reader show the PDF correctly, and you get the error only when printing? I can see 11 groups of nodes in the PDF, as much as in the XML file. Printing the attached PDF on our Xerox Phaser printer from Adobe Reader 9.4.6 worked fine too. I will download PdfWriter now to test what happens with it.
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #7 - Oct 28th, 2011 at 1:04pm
Print Post  
We using Adobe Reader 10.1.0 to view/print the file. I can open the file and view it fine. I just cannot produce a printout of the document. I am having the same issue when printing to our Xerox ColorCube 8870.
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #8 - Oct 28th, 2011 at 1:19pm
Print Post  
I just forwarded a scanned copy of the printout from our printer.
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #9 - Oct 28th, 2011 at 1:24pm
Print Post  
Here is the actual errror from Adobe PDF Distiller(using CS4):

%%[ ProductName: Distiller ]%%
%%[ Error: undefined; OffendingCommand: limitcheck ]%%

Stack:
32
-dict-


%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Printing with PDFExporter
Reply #10 - Oct 28th, 2011 at 3:16pm
Print Post  
Yes, I got this error too when printing from PDF Reader to the "Adobe PDF" printer. Doing some further tests, printing from Foxit Reader (http://www.foxitsoftware.com/Secure_PDF_Reader/) to the PDF printer worked correctly, and printing from Acrobat X Pro worked correctly too. So I think that's a bug in Adobe's PDF Reader, it seems it does not generate correct Postscript code when printing graphics.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #11 - Oct 28th, 2011 at 5:01pm
Print Post  
We were unable to print to the printer using Adobe Pro either. I've done some more diagnosis of the problem. It appears to be related to the text in the shape. If I draw the shapes without text it prints without errors, but adding text back in throws the error. It doesn't matter if it is in a attached shape or at the top level shape.

There no chance we can get the Foxit Reader installed as this will reside on a government based system.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Printing with PDFExporter
Reply #12 - Oct 28th, 2011 at 6:41pm
Print Post  
Ok, I have found a thread in our email archive where my coworker discussed the same error with a customer a few years ago. The error started to happen after the customer upgraded to Adobe Reader 9, and after some tests our developers found it happens because of clip paths that PdfExporter creates for nodes. As a work-around we have added a DisableTextClipping property to PdfExporter and that solved the problem then. Please check if it will work for you, but note that disabling clipping might lead to some side effects, such as longer texts being clipped on screen but not in PDF.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
moneyjh
YaBB Newbies
*
Offline



Posts: 8
Joined: Oct 27th, 2011
Re: Printing with PDFExporter
Reply #13 - Oct 31st, 2011 at 1:20pm
Print Post  
That's fixed it. Thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint