Generating editable PDF using Aspose.CAD (C#)

Hi,
We have used “Aspose.CAD” software to convert .dwf file to .pdf but the user wants the pdf file to be edited. Can that be done?

@Gkrao,

Can you please share dwf file so that we may further investigate to help you out. Also please share desired output as well if possible.

Hi,

Please find the attached document for both source file & desired output file. As shown in desired output, user wants to add some text to .pdf document with red color notes.Sample_And_Desired.zip (41.7 KB)

@Gkrao,

I have observed your requirements and have created an issue with ID CADNET-831 as support request to further investigate and addressing your requirements. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

One more question, the font is coming very small in pdf document created by Aspose.CAD. Is there any reason behind it?

@Gkrao,

Thanks for sharing information with us. We will share good news with you soon.

Hi,

We have observed that the pdf file created by Aspose.CAD was different than the normal pdf file and it was showing the full text for 6% zoom. Normally we cannot see/read the pdf file text by zooming in for 25 to 50%. Could you please correct it as early as possible? We are having production deployment this week and we are looking for solution some what immediately.

Regards,
Gopi.

@Gkrao

Thanks for sharing information. I have mentioned this in issue ticket.

Any luck on this? We have purchased Aspose.CAD software and customers felt bad as it was not able to meet their expectations. Could you please provide your support a bit fast as we are missing our deadlines?

@Gkrao,

The issue is likely to get resolved in Aspose.CAD for .NET 19.9. We will share the good news with you as soon as the issue will be fixed.

Any update on this?

@Gkrao,

Thanks for contacting us again. I like to inform that this issue has been resolved in Aspose.CAD 19.9, which will be release soon. I request for your patience.

Any idea whether 19.9 version got released?

@Gkrao,

Aspose.CAD for .NET 19.9 has been published. We request you to please visit this link for downloading it. Please use the following sample code on your end.

using (var image = Image.Load("sample.dwf"))
{
var dwimg = ((DwfImage)image);
PdfOptions pdfOptions = new PdfOptions();
int count = dwimg.GetElementCount(0);

            DwfWhipText text = new DwfWhipText();
            text.Text = new CAD.FileFormats.Dwf.Whip.Objects.DwfString("THIS IS A TEST TEXT");
            text.Color = Color.Red;
            text.Position = new CAD.FileFormats.Dwf.Whip.Objects.DwfWhipLogicalPoint(40000, 70000);
            text.Font = new CAD.FileFormats.Dwf.Whip.Objects.Service.DwfWhipFont();
            text.Font.Name = new CAD.FileFormats.Dwf.Whip.Objects.Service.Font.DwfWhipOptionFontName();
            text.Font.Name.Value = new CAD.FileFormats.Dwf.Whip.Objects.DwfString("times new roman");
            text.Font.Height = new CAD.FileFormats.Dwf.Whip.Objects.Service.Font.DwfWhipOptionFontHeight();
            text.Font.Height.Value = 2000;
            text.IsVisible = true;
            ((DwfImage)image).AddElement(0,text);

            image.Save("OutFile.pdf", pdfOptions);
        }