HTML ドキュメントの後に作成されたアップロード ファイルに改ページを作成しようとしています。
ドライブ ドキュメントを HTML ファイルとしてダウンロードすると、改ページが<hr style="page-break-before:always;display:none;">
要素で作成されます。<hr>
それでコピーしてみましたが、アップロードするとシンプルに変換されます。
$file = new Google_DriveFile();
$file->setTitle('Procesodecontroldeproducto.html');
$file->setDescription('A test document');
$file->setMimeType( 'text/html');
$createdFile = $service->files->insert($file, array(
'data' => '<p>This is the first page</p><hr style="page-break-before:always;display:none;"><p>This should be on the second page</p>',
'mimeType' => 'text/html',
'convert' => true
));
私の質問は、HTML ドキュメントをドライブ ドキュメントに変換するときに改ページを作成する方法はありますか?