HI,

I created an rtf file containing images in C# using rtf tags. But when I convert the file to pdf, the image is shrinked. What could be the reason?

Thanks

I'd guess that the DPI of the PDF document is set much higher than you think it is, so the image appears to shrink. Your screen is probably around 96 DPI, whereas most documents are 300 DPI. This would make your image look about 1/3rd the size it does on the screen in an RTF document.

You don't say how you are converting the document to a PDF but there is most likely a DPI setting somewhere in the conversion process that you'll need to set.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.