ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Output from ImageEn to PowerPDF gets Pixellated

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yogiyang Posted - Feb 17 2016 : 01:14:36
Hello,

As I am not able to generate required formatted output using PDF feature of ImageEn...

I am using PowerPDF to generate PDF documents that contain text as well as many thumbnails of images. The size of Image control for PowerPDF is set to 100 width and height.

I am loading images programmatically using ImageEn.

Here is the download link to a sample PDF generated using PowerPDF.
https://www.dropbox.com/s/9uv23kqql7qr3c7/projectdetails.pdf?dl=0

Code snippet that I am using to load Image in PowerPDF Image Control
ieTemp.Proc.Resample(150, -1, TResampleFilter(0));
pdfImageR1C2.Picture.Assign(ieTemp.Bitmap);


Please help solve this problem. I have tried in every way to get better output but have not been able to get it.

TIA



Yogi Yang
7   L A T E S T    R E P L I E S    (Newest First)
rmklever Posted - Feb 28 2016 : 09:04:35
Hi Yogi, I just sent you the component

Roy M Klever
Klever on Delphi - www.rmklever.com
yogiyang Posted - Feb 26 2016 : 00:51:53
Hello Roy,

Please do share your component it will give me some ideas as to how to proceed and solve my problems.

TIA


Yogi Yang
rmklever Posted - Feb 25 2016 : 13:02:53
Hi Yogi,

I am using the PrintPreview component to render the pages. The PrintPreveiw component can be setup to use SynopsePDF engine and save the pages as a PDF.

So I am not using SynopsePDF engine directly. Working with PrintPreview is not that hard and I can send you my contact sheet component if you need some sourcecode to get started.

If you can render your page as TMetatfile I belive you can use SynopsePDF to save it as a PDF.


Roy M Klever
Klever on Delphi - www.rmklever.com
yogiyang Posted - Feb 25 2016 : 09:21:20
Hello Roy,

 
I am using PrintPreview: http://www.delphiarea.com/products/delphi-components/preview/

And SynopsePDF: http://www.synopse.info/fossil/wiki?name=PDF+Engine

Can you share some code show as to how you have used PDF Engine - SynopsePDF.

I tried but could not get it to place images as I wanted so had to adopt PowerPDF.

TIA



Yogi Yang
yogiyang Posted - Feb 20 2016 : 02:26:23
Hello Roy,

 
I have done almost the same... have a look at my pdf

http://1drv.ms/20Zaxxx


I am using PrintPreview: http://www.delphiarea.com/products/delphi-components/preview/

And SynopsePDF: http://www.synopse.info/fossil/wiki?name=PDF+Engine


I think it is quite easy to get what you want using this combination



I have tried my hands on SynopsePDF but is does not give the required flexibility. I tried to ask question on the official forum but never replied any worth while reply.

In fact I feel that SynopsePDF is immature and has many missing features.

Anyway, Thanks for your inputs.

I will try our Nigels suggestion also and see if I can resolve this issue.

TIA




Yogi Yang
xequte Posted - Feb 17 2016 : 20:51:28
Hi Yogi

I know nothing about PowerPDF, so I think you would be better to ask the question of them.

Looking at the PDF you supplied the images are not being displayed with the correct aspect ratio. They are stretched to display so will naturally look blurry. If PowerPDF does not have an option to maintain AR, then you might need to artificially add borders to your image before assigning it to PowerPDF (after resampling use Proc.ImageResize).

Also, you are not using a resample filter with Proc.Resample, you should at least use something like rfFastLinear.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
rmklever Posted - Feb 17 2016 : 09:14:48
Hi,

I have done almost the same... have a look at my pdf

http://1drv.ms/20Zaxxx


I am using PrintPreview: http://www.delphiarea.com/products/delphi-components/preview/

And SynopsePDF: http://www.synopse.info/fossil/wiki?name=PDF+Engine


I think it is quite easy to get what you want using this combination

SynopsePDF is MPL lisenced



Roy M Klever
Klever on Delphi - www.rmklever.com