Replies: 1 comment 4 replies
-
Hi @haddougui - thanks for asking. Changing the file extension will not be enough to convert the file from a
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Community,
I created this issue hoping that someone in our Javascript community will help in changing a given file extension from a source one into a destination one.
So, I already make a research on chatgpt AI and other tools and found some results but it wasn't the required one.
The change has a drawback stating that the metadata of the file or its content it's erased.
The same when opening or changing the file extension on your desktop viewer.
So I was asked to export a bunch of files into a PDF extension. For example from a PNG extension into PDF....
In addition, it can be possible to do that task without reading the content.
Please feel free to view the issue and give your response as expected.
Here it is the source code:
/
/
exportToPdf(){
this.attachments.forEach(item => {
item.mimeType= AttachmentWebContentType.PDF;
const fileName= item.filename.split('.')[0];
item.filename=
${fileName}.pdf
;})
}*
Beta Was this translation helpful? Give feedback.
All reactions