A
A
Anton Rodionov2019-03-07 09:54:07
C++ / C#
Anton Rodionov, 2019-03-07 09:54:07

How to convert pdf with text layer to pdf in which it is impossible to select text (like a picture) in C#?

Good afternoon, comrades. I have a very simple doc, docx to pdf converter

Word.Application word = new Word.Application(); //создаём экземпляр приложения Word
Word.Document file = word.Documents.Open(path); //создаём экземпляр документа и открываем word файл
file.ExportAsFixedFormat(path + ".pdf", Word.WdExportFormat.wdExportFormatPDF); //преобразование файла в PDF формат
word.Quit(); // закрываем Word

But it has a text layer after conversion. The customer asks to remove this possibility of highlighting the text. Is there an elegant solution to this problem? I understand that I can convert pdf to pictures and collect back.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Denis Gaydak, 2019-03-07
@Viper029

no. Word does not have a built-in.
you will have to turn it into pictures. Or an Adobe library or some third-party one, like https://www.ghostscript.com/.
but in any case, all this inside comes down to turning into pictures and gluing pdf from pictures.
here's an example, although I'm sure and so stumbled
https://stackoverflow.com/questions/23905169/how-t...

T
twopizza, 2016-10-28
@CRYPTOMUSK

kenwheeler.github.io/slick

S
Sergey Goryachev, 2016-10-29
@webirus

BxSLider > Ticker

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question