Converting pdf problem


Recommended Posts

printpdf() does not support bitmaps, only vector graphics.  You have two choices:

1) replace your bitmap with a vector (WMF) version of your graphic, if possible

2) use a 3rd party PDF print driver and simply "Print" your page

 

Link to comment
Share on other sites

Hi,

 

WMF file also not working.

We will convert 5-6 pages to pdf for reports. and we are using also pdfAddPage function. Which we can you third party driver which will work as same functionality.

 

Link to comment
Share on other sites

Hi,

If I add to wmf file to Symbol Factory then copy and paste to screen, it is working. But I want to put customer logo and I am using;


            component.CustomerLogo.LoadImage("C:\Logo.wmf")

 

Load image is not working.

Link to comment
Share on other sites

The DAQFactory PDF generator only supports a basic set of WMF commands, basically the ones that are used by symbol factory.  Your WMF file uses some complicated ones, specifically:

POLYPOLYGON16

which is probably what is being used to draw the parts that aren't showing up in the PDF.  You have a couple choices:

1) use a much more basic WMF drawing program.  Illustrator and other higher end vector apps tend to just always use the complicated drawing methods.  Simpler, often free, WMF editors tend to only use a small subset of the available commands, and typically the simpler ones.

2) PolyPolygon is basically a command that takes a bunch of vertices and creates a complicated filled shape.  So, recreate your logo using simpler shapes, namely lines, so that PolyPolygon isn't used.  The non-text part of the logo, for example, should be 8 separate lines, not grouped together as one.  Likewise, the text should be actual text, not shapes.  If you can't get the text to work, eliminate it from the image, and just use DAQFactory's text component to create the label.  As I mentioned, it is possible that your WMF editing app will use polyPolygon just to draw a straight line.  If that happens, you'll need to find a different WMF editor.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share