You are here

function pdf_to_imagefield_save_file in PDF to ImageField 7

Same name and namespace in other branches
  1. 6.2 pdf_to_imagefield.module \pdf_to_imagefield_save_file()

Save created image to files table.

Parameters

$filepath:

Return value

Object describing the new entry.

1 call to pdf_to_imagefield_save_file()
pdf_to_imagefield_convert_pages in ./pdf_to_imagefield.module
Convert pages from pdf file to individual jpeg files

File

./pdf_to_imagefield.module, line 78
PDF to ImageField core hooks and menu callbacks.

Code

function pdf_to_imagefield_save_file($filepath) {
  $file = pdf_to_imagefield_file_placeholder($filepath);
  drupal_write_record('files', $file);
  return $file;
}