Hi,
Is there a possible way to display a document in HTML Portlet (for example a pdf) from attachments with a REST API o something else without download the file, only need to view in portlet
We tried
<!DOCTYPE html>
<html>
<head>
<title>Mostrar PDF</title>
</head>
<body>
<embed src="base_url_ppm/itg/servlet/Document?ID=31190&viewOnly=TRUE" width="600" height="500" type="application/pdf">
</body>
</html>
and
<!DOCTYPE html>
<html>
<head>
<title>Mostrar PDF</title>
</head>
<body>
<embed src="base_url_ppm/itg/rest2/attachments/31190/content" width="600" height="500" type="application/pdf">
</body>
</html>
But this starts the download without viewing pdf