kanber Posted February 19, 2022 Share Posted February 19, 2022 Hi, I am trying to convert pdf but on screen if there is imported bmp file it is not showing on pdf. can you hekp me how I can fix it? Version is 18.1 Pdf.ctl Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted February 19, 2022 Share Posted February 19, 2022 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 Quote Link to comment Share on other sites More sharing options...
kanber Posted February 21, 2022 Author Share Posted February 21, 2022 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. Quote Link to comment Share on other sites More sharing options...
kanber Posted February 21, 2022 Author Share Posted February 21, 2022 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. Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted February 21, 2022 Share Posted February 21, 2022 LoadImage doesn't work with wmf. It is designed for loading bitmaps (jpeg, png, etc). You will have to copy/paste it at design time. Quote Link to comment Share on other sites More sharing options...
kanber Posted February 21, 2022 Author Share Posted February 21, 2022 Hi, I add file with wmf. but still converting pdf problem. please see attached file. how can I solve that problem? Pdf.ctl Quote Link to comment Share on other sites More sharing options...
AzeoTech Posted February 26, 2022 Share Posted February 26, 2022 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.