tracker issue : CF-4050295

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: unable to extract image from ram:// to ram://

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 09/06/2015

Components: Document Management, PDF manipulation

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win All

Vote Count: 0

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on May 17, 2018 using build 2016.0.01.298513
- extracttext from ram:// to ram:// works (good)
- extractimage from ram:// to disk works (good)
- extractimage from ram:// to ram:// throws "Output has not been set!" (bad)

Repro:

<cfscript>
  cfdocument(format="pdf", filename="ram://myPDF.pdf", overwrite=true) {writeOutput("page 1<img src='https://prerelease-auth.adobe.com/IMS/resources/img/login2.png'>");}

  cfpdf(action="extracttext", source="ram://myPDF.pdf", pages="*", destination="ram://myText.txt", overwrite=true);
  writeOutput(fileRead("ram://myText.txt"));//displays "page 1" (good)
  
  cfpdf(action="extractimage", source="ram://myPDF.pdf", pages="*", destination=expandPath("./"), overwrite=true);
  cfimage(action="writetobrowser", source=expandPath("./cfpage1Image-0.jpg"));//displays the image (good)
  
  cfpdf(action="extractimage", source="ram://myPDF.pdf", pages="*", destination="ram://", overwrite=true);//throws exception (bad)
  cfimage(action="writetobrowser", source="ram://cfpage1Image-0.jpg");
</cfscript>

Actual result:
"page 1" [image] exception

Expected result:
"page 1" [image] [image]

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4050295

External Customer Info:
External Company:  
External Customer Name: Aaron Neff
External Customer Email:  
External Test Config: Verified in CF11 Update 5 (build 11,0,05,293506)

Attachments:

Comments:

Also seems to happen when using thumbnail: var ramDirPath = "ram:///pdfimages/"; var pdfService = new pdf(); pdfService.thumbnail(source=pdfPath, format="jpg", destination=ramDirPath, resolution="high", scale="100", pages="1", overwrite="true", hires="yes"); Hope the fix includes this.
Comment by External U.
5989 | October 27, 2015 06:38:31 PM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). The description's code returns its expected result. Hi External User, No, action="thumbnail" still fails for ram://. The following throws: "org.jpedal.exception.PdfException: Exception java.io.FileNotFoundException: ram:\myPDF.pdf (The filename, directory name, or volume label syntax is incorrect) accessing file" in CF2016 Update 1 (build 2016.0.01.298513). <cfscript> cfdocument(format="pdf", filename="ram://myPDF.pdf", overwrite=true) {writeOutput("my PDF");} cfpdf(action="thumbnail", source="ram://myPDF.pdf", pages=1, destination="ram://", overwrite=true); //cfimage(action="writetobrowser", source="ram://page_1.jpg"); </cfscript> Thanks!, -Aaron
Comment by Aaron N.
27850 | May 17, 2018 11:34:07 PM GMT